public void Test_Update() { BrokerBLL bll = new BrokerBLL(_unit); var b = bll.GetList().ToArray()[0]; b.Owner = "2b658482-6a38-4ed3-b356-77fe9b1569f1"; bll.Update(b); }
public async Task <IHttpActionResult> Get() { List <Broker> slist = null; try { BrokerBLL bll = new BrokerBLL(_unit); slist = bll.GetList().ToList(); } catch (Exception ex) { LogHelper.Error(_log, ex.ToString()); return(InternalServerError(ex)); } return(Ok(slist)); }