using System.ComponentModel.DataAnnotations;
using System.Collections;
using System.Collections.Generic;
public class HomeController : Controller
public ActionResult Index()
public JsonResult EmpDetails()
List<Employee> ObjEmp = new List<Employee>()
new Employee {Id=1,Name="Vithal Wadje",City="Latur",Address="Kabansangvi" },
new Employee {Id=2,Name="Sudhir Wadje",City="Mumbai",Address="Kurla" }
return Json(ObjEmp, JsonRequestBehavior.AllowGet);