public IActionResult Update(int id, [FromBody] Video newVideo) { try { _videoLogic.Update(newVideo, id); return(Ok("Updated successfully")); } catch (EntityAlreadyExist fe) { return(UnprocessableEntity(fe.MessageError())); } catch (FieldEnteredNotCorrect en) { return(UnprocessableEntity(en.MessageError())); } catch (EntityNotExists en) { return(NotFound(en.MessageError())); } catch (Exception e) { return(StatusCode(StatusCodes.Status500InternalServerError, e.Message)); } }