public object GetDepartment() // get an information of department using sp { var departmentList = from x in employeeDBContext.spGetDepartmentDetails() orderby x.ID select x; return(departmentList.ToList()); }