예제 #1
0
        public static List <InMemoryModel> GetGridModel()
        {
            List <InMemoryModel> typedList = new List <InMemoryModel>();
            Random randomizer = new Random();

            for (int i = 0; i < DataItemsCount; i++)
            {
                InMemoryModel item = new InMemoryModel()
                {
                    ID = i, Text = "Text" + i, Value1 = i * 2, Value2 = i * 5
                };
                typedList.Add(item);
            }
            return(typedList);
        }
 public ActionResult GridViewPartialUpdate(T611370_CS.Models.InMemoryModel item)
 {
     ViewData["EditError"] = "CRUD opearations are not implemented";
     return(PartialView("_GridViewPartial", Session["Model"]));
 }