public async Task <ActionResult <DateTime> > GetLastQuoteDate() { DateTime lastQuoteDate = await qMgr.GetLastQuoteDate(); appSettings.LastQuoteDate = lastQuoteDate; return(Ok(lastQuoteDate)); }
public async Task <ActionResult <DateTime> > GetLastQuoteDate() { ManagerResult <DateTime> mrLastQuoteDate = await qMgr.GetLastQuoteDate(); if (!mrLastQuoteDate.Success) { return(BadRequest(mrLastQuoteDate)); } return(Ok(mrLastQuoteDate.Entity)); }