Exemplo n.º 1
0
 /// <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);
 }
Exemplo n.º 2
0
 public static WorkProfilePlan CreateNew(WorkProfilePlanDataService dataService)
 {
     int id = dataService.AddModel(dataService.CreateDefault());
     return dataService.GetSingle(id);
 }