Пример #1
0
 public IActionResult UpdateNewsById([FromBody] NewsItemInputModel news, int id)
 {
     if (!ModelState.IsValid)
     {
         return(BadRequest("Model is not properly formatted."));
     }
     _newsService.UpdateNewsById(news, id);
     return(NoContent());
 }