//public async Task<IHttpActionResult> Get(string name) //{ // DropdownDataService service = new DropdownDataService(Request.GetOwinContext().Get<LabDBContext>()); // return Ok(await service.GetList(name.ToLower())); //} public IHttpActionResult Get(string name) { DropdownDataService service = new DropdownDataService(Request.GetOwinContext().Get <LabDBContext>()); return(Ok(service.GetList(name.ToLower()))); }
public async Task <IHttpActionResult> Get(string name) { DropdownDataService service = new DropdownDataService(Request.GetOwinContext().Get <BusinessDbContext>()); return(Ok(await service.GetList(name.ToLower()))); }