public ActionResult CreateInspection([FromBody] Inspection inspection) { if (IsAnyNullOrEmpty(inspection)) { return(BadRequest()); } var result = _inspectionService.AddInspection(inspection); if (result) { return(Ok()); } return(NotFound()); }
public ActionResult CreateInspection([FromBody] Inspection inspection) { if (IsAnyNullOrEmpty(inspection)) { return(BadRequest()); } var result = _inspectionService.AddInspection(inspection); if (result) { return(Ok()); } return(NotFound()); }