public ActionResult <string> Delete(long Id) { var result = _departementService.DeleteDepartement(Id); if (result.Success) { return(Ok("Success")); } else { return(BadRequest(result.Reason)); } }