예제 #1
0
        public ActionResult CreateInspection([FromBody] Inspection inspection)
        {
            if (IsAnyNullOrEmpty(inspection))
            {
                return(BadRequest());
            }

            var result = _inspectionService.AddInspection(inspection);

            if (result)
            {
                return(Ok());
            }
            return(NotFound());
        }