public async Task <IHttpActionResult> GetByZone(int?zoneId = null) { List <OutAccount> slist = null; try { var currentUser = await base.GetCurrentUser(); AccountBLL bll = new AccountBLL(_unit); slist = bll.GetAccountFullListByUser(currentUser.Id, zoneId); } catch (Exception ex) { LogHelper.Error(_log, ex.ToString()); return(InternalServerError(ex)); } return(Ok(slist)); }
public void Test_GetAccountFullListByUser() { AccountBLL bll = new AccountBLL(_unit); var aList = bll.GetAccountFullListByUser("2b658482-6a38-4ed3-b356-77fe9b1569f1", 2); }