using DepartmentContract.BindingModels;
using DepartmentContract.Logics.IGenericEntityLogic;
using DepartmentContract.Services.IGenericEntityService;
using DepartmentContract.ViewModels;
using ToolsModule.BusinessLogics;
using ToolsModule.Enums;
namespace DepartmentBusinessLogic.BusinessLogics.GenericBusinessLogic
{
///
/// Логика работы с учебными планами
///
public class AcademicPlanBusinessLogic : GenericBusinessLogic, IAcademicPlanLogic
{
public AcademicPlanBusinessLogic(IAcademicPlanService service) : base(service, "Учебные Планы", AccessOperation.УчебныеПланы) { }
///
/// Загрузка учебного плана
///
///
///
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;
}
}
}