Пример #1
0
 public async Task <IActionResult> Post([FromBody] Reason value)
 {
     try
     {
         var entity = _mapper.Map <BL.Reason>(value);
         var id     = _service.SaveAsync(entity);
         return(Ok(id));
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }