public string DeleteEmpInfo(EmployeeInfo objEmployee)
 {
     _db.Remove(objEmployee);
     _db.SaveChanges();
     return("Delete Successfully");
 }
        public EmployeeInfo GetEmployeeById(int id)
        {
            EmployeeInfo employee = _db.Employees.FirstOrDefault(c => c.EmployeeId == id);

            return(employee);
        }
 public string UpdateEmployee(EmployeeInfo objEmployee)
 {
     _db.Employees.Update(objEmployee);
     _db.SaveChanges();
     return("Update Successfully");
 }
 public string Create(EmployeeInfo objEmployee)
 {
     _db.Employees.Add(objEmployee);
     _db.SaveChanges();
     return("Save Successfully");
 }