Ejemplo n.º 1
0
 public HttpResponseMessage GetVideoInfo(int videoId)
 {
     try
     {
         videoContent response = _business.GetVideoInfo(videoId);
         return(Request.CreateResponse(HttpStatusCode.OK, response));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, ex.Message.ToString()));
     }
 }
Ejemplo n.º 2
0
 public videoContent GetVideoInfo(int videoId)
 {
     try
     {
         videoContent videoInfo = _repository.GetVideoInfo(videoId);
         return(videoInfo);
     }
     catch (Exception)
     {
         throw;
     }
 }