示例#1
0
        // 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));
        }
示例#2
0
        public IHttpActionResult DetailsEmp()
        {
            List <Employee> empList = new List <Employee>();

            empList = db.Details().ToList();
            if (empList.Count == 0)
            {
                return(NotFound());
            }

            return(Ok(empList));
        }