// GET: Employee public ActionResult Details(string search = "", string sortColumn = "Name", string IconClass = "fa-sort-asc") { List <Employee> empList = new List <Employee>(); empList = db.Details().ToList(); return(View(empList)); }
public IHttpActionResult DetailsEmp() { List <Employee> empList = new List <Employee>(); empList = db.Details().ToList(); if (empList.Count == 0) { return(NotFound()); } return(Ok(empList)); }