diff --git a/CompanyManagment.App.Contracts/InstitutionPlan/InstitutionPlanSearchModel.cs b/CompanyManagment.App.Contracts/InstitutionPlan/InstitutionPlanSearchModel.cs index 34e5d347..f6055430 100644 --- a/CompanyManagment.App.Contracts/InstitutionPlan/InstitutionPlanSearchModel.cs +++ b/CompanyManagment.App.Contracts/InstitutionPlan/InstitutionPlanSearchModel.cs @@ -5,7 +5,7 @@ namespace CompanyManagment.App.Contracts.InstitutionPlan; public class InstitutionPlanSearchModel : PaginationRequest { /// - /// تعدلد پرسنل برای جستجو + /// تعداد پرسنل برای جستجو /// - public int CountPeron { get; set; } + public int CountPerson { get; set; } } \ No newline at end of file diff --git a/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs b/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs index b5b6db6b..57d41be0 100644 --- a/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs +++ b/CompanyManagment.EFCore/Repository/PlanPercentageRepository.cs @@ -340,8 +340,8 @@ public class PlanPercentageRepository : RepositoryBase, IP .Select(x => x.ItemValue).FirstOrDefault(); var plans = _context.InstitutionPlans.AsQueryable(); - if (searchModel.CountPeron > 0) - plans = plans.Where(x => x.CountPerson == searchModel.CountPeron); + if (searchModel.CountPerson > 0) + plans = plans.Where(x => x.CountPerson == searchModel.CountPerson); var planQueryFilter =await plans.ApplyPagination(searchModel.PageIndex, searchModel.PageSize).ToListAsync(); var planResult = planQueryFilter.Select(plan =>