Esempio n. 1
0
        //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())));
        }
Esempio n. 2
0
        public async Task <IHttpActionResult> Get(string name)
        {
            DropdownDataService service = new DropdownDataService(Request.GetOwinContext().Get <BusinessDbContext>());

            return(Ok(await service.GetList(name.ToLower())));
        }