change
This commit is contained in:
@@ -5,7 +5,7 @@ namespace CompanyManagment.App.Contracts.InstitutionPlan;
|
||||
public class InstitutionPlanSearchModel : PaginationRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// تعدلد پرسنل برای جستجو
|
||||
/// تعداد پرسنل برای جستجو
|
||||
/// </summary>
|
||||
public int CountPeron { get; set; }
|
||||
public int CountPerson { get; set; }
|
||||
}
|
||||
@@ -340,8 +340,8 @@ public class PlanPercentageRepository : RepositoryBase<long, PlanPercentage>, 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 =>
|
||||
|
||||
Reference in New Issue
Block a user