Пример #1
0
 public ActionResult <Video> Edit(int id, [FromBody] Video updatedVideo)
 {
     try
     {
         updatedVideo.Id = id;
         return(Ok(_vs.Edit(updatedVideo)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }