Hi,
I have one action method
i need to apply async and await keywords but here getting error
could you please help me how to apply
async and await keywords on below action method
[HttpGet]
public async Task<ActionResult> GetCompanyName()
{
var comp = await(db.companies.Select(model => new { model.Id, model.Name }).ToList());
return Json(comp, JsonRequestBehavior.AllowGet);
}