public Employee GetEmployee(int id) { Employee employee = new Employee(); GET_EMPLOYEEDETAILS_Result result = entities.GET_EMPLOYEEDETAILS(id).FirstOrDefault(); employee.EMP_ID = result.EMP_ID; employee.EMP_NAME = result.EMP_NAME; employee.EMP_AGE = result.EMP_AGE; employee.EMP_DOB = result.EMP_DOB; employee.EMP_DOJ = result.EMP_DOJ; return(employee); }