Files
Backend-Api/CompanyManagment.Application/RollCallPlanAppllication.cs
2024-07-05 21:36:15 +03:30

30 lines
854 B
C#

using System.Collections.Generic;
using Company.Domain.RollCallPlanAgg;
using CompanyManagment.App.Contracts.RollCallPlan;
namespace CompanyManagment.Application;
public class RollCallPlanAppllication : IRollCallPlanAppllication
{
private readonly IRollCallPlanRepository _rollCallPlanRepository;
public RollCallPlanAppllication(IRollCallPlanRepository rollCallPlanRepository)
{
_rollCallPlanRepository = rollCallPlanRepository;
}
public List<RollCallPlanViewModel> GetAll()
{
return _rollCallPlanRepository.GetAll();
}
public List<RollCallPlanViewModel> GetSelectedPlans()
{
return _rollCallPlanRepository.GetSelectedPlans();
}
public RollCallPlanViewModel GetByMaxPersonValid(int maxPerson)
{
return _rollCallPlanRepository.GetByMaxPersonValid(maxPerson);
}
}