示例#1
0
        public ActionResult <ErrorDTO> Put([FromBody] ErrorEntryDTO entry)
        {
            if (entry.Id.HasValue && _service.CheckError(entry.Id.Value))
            {
                _service.Update(_mapper.Map <Error>(entry));
                return(Ok());
            }


            return(BadRequest("Error not found"));
        }