/// <summary> /// Initializes a new instance of the <see cref="WorkProfilePlanVm"/> class initialized with default values. /// </summary> public WorkProfilePlanVm(AccessType access, WorkProfilePlanDataService dataService) : base(access) { _model = dataService.CreateDefault(); InitializeData(dataService); }
public static WorkProfilePlan CreateNew(WorkProfilePlanDataService dataService) { int id = dataService.AddModel(dataService.CreateDefault()); return dataService.GetSingle(id); }