mercredi 11 mai 2016

need help in converting to async

I am not able to convert to async action. It says await required

public async Task<JsonResult> Get_Fare_TypeAsync()
            {
                var types = db.Types.Select(e => new { ID = e.Code, Description = e.Description, Value = e.Code, SortOrder = e.SortOrder }).ToList().OrderBy(x => x.SortOrder);


                return Json(types ,JsonRequestBehavior.AllowGet);
            }

Aucun commentaire:

Enregistrer un commentaire