public List<EmployeesModel> saveEmp(string empName, string dept)
        {
            using (jqueryWithMVCTestEntities obj = new jqueryWithMVCTestEntities())
            {
                Employee emp = new Employee();
                emp.Name = empName;
                emp.Department = dept;

                obj.Employees.Add(emp);
                obj.SaveChanges();
            }

            return GetAllEmployees();
        }
        private List<EmployeesModel> GetAllEmployees()
        {
            using (jqueryWithMVCTestEntities obj = new jqueryWithMVCTestEntities())
            {
                var allRecords = (from c in obj.Employees
                                  select new EmployeesModel
                                      {
                                          EmployeeId = c.Id,
                                          EmployeeName = c.Name,
                                          EmployeeDepartment = c.Department
                                      }).ToList();

                return allRecords;
            }
        }