コード例 #1
0
        public ActionResult SetCustomerConcern(Guid id, [FromBody] bool isCustomerConcern)
        {
            var inspectionItemInDb = _context.InspectionItems.SingleOrDefault(item => item.Id == id);

            if (inspectionItemInDb == null)
            {
                return(NotFound());
            }

            return(InspectionService.UpdateIsCustomerConcern(_context, inspectionItemInDb, isCustomerConcern) ?
                   NoContent() :
                   StatusCode(500));
        }