public async Task <ActionResult <IEnumerable <GenericViewResource> > > GetAction([FromServices] IGet get, decimal North, decimal West, decimal Radius) { log.LogInformation($"Querrys the database for all generic data within {Radius} miles of N{North}, W{West}"); return(await TryTask <IEnumerable <GenericViewResource> > .Run(async() => Ok(await get.Generics(North, West, Radius)))); }
public async Task <ActionResult <IEnumerable <GenericViewResource> > > GetActionState([FromServices] IGet get, string state) { log.LogInformation($"Querrying the database for all generic recources in {state}"); return(await TryTask <IEnumerable <GenericViewResource> > .Run(async() => Ok(await get.Generics(item => item.State == state)))); }
public async Task <ActionResult <IEnumerable <GenericViewResource> > > GetAction([FromServices] IGet get) { log.LogInformation($"Querrying the database for all generic data"); return(await TryTask <IEnumerable <GenericViewResource> > .Run(async() => Ok(await get.Generics()))); }