public ServiceResult UpdateStatus(Status statusToUpdate)
 {
     try
     {
         _unitOfWork.Status.Update(statusToUpdate);
         _unitOfWork.Save();
         return ServiceResult.Ok();
     }
     catch (DbUpdateException e)
     {
         return ServiceResult.Fail(base.FormatExceptions(e));
     }
 }
 public ServiceResult DeleteStatus(Status model)
 {
     try
     {
         _unitOfWork.Status.Delete(model);
         _unitOfWork.Save();
         return ServiceResult.Ok();
     }
     catch (DbUpdateException e)
     {
         return ServiceResult.Fail(base.FormatExceptions(e));
     }
 }