public async Task <IHttpActionResult> Get(int shareId = 0, int tradingDate = 0) { List <Note> nlist = null; try { var currentUser = await base.GetCurrentUser(); NoteBLL bll = new NoteBLL(_unit); nlist = bll.GetNotesByShareAndUser(shareId, tradingDate, currentUser.Id); } catch (Exception ex) { LogHelper.Error(_log, ex.ToString()); return(InternalServerError(ex)); } return(Ok(nlist)); }
public void Test_GetNotesByShareAndUser() { NoteBLL bll = new NoteBLL(_unit); List <Note> nList = bll.GetNotesByShareAndUser(2433, 20160527, "2b658482-6a38-4ed3-b356-77fe9b1569f1"); }