public async Task <ActionResult <Quote> > GetLast(Guid equityid) { Quote mrQuoteList = await qMgr.GetLast(equityid); if (mrQuoteList == null) { return(BadRequest(mrQuoteList)); } return(Ok(mrQuoteList)); }
public async Task <ActionResult <Quote> > GetLast(Guid equityid) { ManagerResult <Quote> mrQuoteList = await qMgr.GetLast(equityid); if (!mrQuoteList.Success) { return(BadRequest(mrQuoteList)); } return(Ok(mrQuoteList.Entity)); }