public SuccessDepartmentMessage DeleteDepartmentById(int id) { SuccessDepartmentMessage objuser = new SuccessDepartmentMessage(); try { return(_propertyService.DeleteDepartmentById(id)); } catch (Exception ex) { objuser.Status = false; objuser.Message = ex.Message.ToString(); return(objuser); } }