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