public JsonResult About()
        {
            var vm = TaskDa.GetList();

            //List<string> s = new List<String>();


            //for (int i=0;i<vm.Count();i++)
            //{
            //    s.Add(vm[i].ToString())/*.taskId.ToString()+'|'+vm[i].taskName.ToString()*/;
            //}
            ////var j= Task.taskg(s,vm);
            //ViewBag.d = s;
            return(Json(vm, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
 public static List <Task> GetList()
 {
     return(TaskDa.GetList());
 }