public async Task <IHttpActionResult> Get() { List <WatchList> wlist = null; try { var currentUser = await base.GetCurrentUser(); WatchListBLL bll = new WatchListBLL(_unit); wlist = bll.GetWatchList(currentUser.Id); } catch (Exception ex) { LogHelper.Error(_log, ex.ToString()); return(InternalServerError(ex)); } return(Ok(wlist)); }
public void Test_GetWatchList() { WatchListBLL tbll = new WatchListBLL(_unit); List <WatchList> wlist = tbll.GetWatchList("2b658482-6a38-4ed3-b356-77fe9b1569f1"); }