public async Task <IActionResult> DeleteDemand(Guid demandId) { int result = 0; if (demandId == null) { return(BadRequest()); } try { result = await demandRepo.DeleteDemandInfo(demandId); if (result == 0) { return(NotFound()); } return(Ok()); } catch (Exception excp) { return(BadRequest(excp)); } }