public IActionResult GetAll()
 {
     try
     {
         return(Ok(_videoLogic.GetAll()));
     }
     catch (Exception e)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError, e.Message));
     }
 }
示例#2
0
 public IEnumerable <VideoModel> Get()
 {
     return(_videoLogic.GetAll());
 }