first commit

This commit is contained in:
Dhananjaya99
2026-09-28 11:44:26 +05:30
parent 721743ae6b
commit bffc9b1686
424 changed files with 46474 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
using Fitness_core_BE.Interfaces;
using Fitness_core_BE.Models;
using Microsoft.EntityFrameworkCore;
namespace Fitness_core_BE.Repos
{
public class NavItemRepository : INavItemRepository
{
private readonly CentralDbContext _context;
public NavItemRepository(CentralDbContext context)
{
_context = context;
}
public async Task<List<NavItem>> GetActiveNavItemsOrdered()
{
return await _context.NavItems
.AsNoTracking()
.Where(n => n.IsActive)
.OrderBy(n => n.SortOrder)
.ToListAsync();
}
}
}