public WorkloadViewModel(Workload workload)
 {
     _workload = workload;
 }
 public void DeleteWorkload(Workload workload)
 {
     this._context.Workloads.Remove(workload);
     this._context.SaveChanges();
 }
 public void AddWorkload(Workload workload)
 {
     this._context.Workloads.Add(workload);
     this._context.SaveChanges();
 }
 public void EditWorkload(Workload workload)
 {
     this._context.Entry(workload).State = EntityState.Modified;
     this._context.SaveChanges();
 }
 public WorkloadViewModel WorkLoadViewModelToWorkLoadModel(Workload workload)
 {
     return new WorkloadViewModel(workload);
 }