public void UpdateRequest(string id, string desc,string itemName)
 {
     MaintenanceModel md = new MaintenanceModel();
      MaintenanceDTO dto = new MaintenanceDTO();
      dto.Id = ValidationUtility.ToInteger(id);
      dto.CategoryId = md.GetCategoryId(itemName);
      dto.Description = desc;
      md.UpdateMaintenanceRequest(dto, false);
 }
 public void UpdateRequest(string id, string desc, string status, string itemName, string resDate)
 {
     MaintenanceModel md = new MaintenanceModel();
     MaintenanceDTO dto = new MaintenanceDTO();
     dto.Id = ValidationUtility.ToInteger(id);
     dto.CategoryId = md.GetCategoryId(itemName);
     dto.Description = desc;
     dto.Status = status;
     dto.DateResolved = ValidationUtility.ToDate(resDate);
     md.UpdateMaintenanceRequest(dto, true);
 }