public DeleteDesiredStateResponse DeleteDesiredState(DeleteDesiredStateRequest request)
 {
     try
     {
         var desiredStae = new DesiredState { Id = request.Id };
         DataContext.DesiredStates.Attach(desiredStae);
         DataContext.DesiredStates.Remove(desiredStae);
         DataContext.SaveChanges();
         return new DeleteDesiredStateResponse
         {
             IsSuccess = true,
             Message = "The item has been deleted successfully",
         };
     }
     catch {
         return new DeleteDesiredStateResponse
         {
             IsSuccess = false,
             Message = "An error occured, please contact the administrator for further information"
         };
     }
 }
 public ActionResult DeleteDesiredState(int id)
 {
     var request = new DeleteDesiredStateRequest { Id = id };
     return Json(_businessPostureService.DeleteDesiredState(request));
 }