DepartmentProject/DepartmentPortal/Department/DepartmentBusinessLogic/BusinessLogics/GenericBusinessLogic/AcademicPlanBusinessLogic.cs

34 lines
1.2 KiB
C#
Raw Permalink Normal View History

using DepartmentContract.BindingModels;
using DepartmentContract.Logics.IGenericEntityLogic;
using DepartmentContract.Services.IGenericEntityService;
using DepartmentContract.ViewModels;
2022-03-20 10:10:44 +04:00
using ToolsModule.ManagmentEntity;
using ToolsModule.ManagmentSecurity;
2021-04-06 22:07:11 +04:00
namespace DepartmentBusinessLogic.BusinessLogics.GenericBusinessLogic
2021-04-06 22:07:11 +04:00
{
/// <summary>
/// Логика работы с учебными планами
/// </summary>
public class AcademicPlanBusinessLogic : GenericBusinessLogic<AcademicPlanGetBindingModel, AcademicPlanSetBindingModel, AcademicPlanListViewModel, AcademicPlanViewModel>, IAcademicPlanLogic
2021-04-06 22:07:11 +04:00
{
public AcademicPlanBusinessLogic(IAcademicPlanService service) : base(service, "Учебные Планы", AccessOperation.УчебныеПланы) { }
/// <summary>
/// Загрузка учебного плана
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public bool LoadPlx(AcademicPlanLoadPlxModel model)
{
Errors.Clear();
var result = (Service as IAcademicPlanService).LoadPlx(model);
if (!result.IsSucceeded)
{
Errors.AddRange(result.Errors);
return false;
}
return true;
}
2021-04-06 22:07:11 +04:00
}
}