public ActionResult TranslationItems(GridParams g, string TextId, string LanguageCode) { var items = ITranslation.GetTranslationLogByCode(TextId, LanguageCode).AsQueryable(); var key = Convert.ToInt32(g.Key); var model = new GridModelBuilder <Translation>(items.AsQueryable(), g) { Key = "Id", GetItem = () => items.Single(x => x.Id == key) }.Build(); return(Json(model)); }