public void Act(DAL.IDataRepository DataRepo, dynamic ClassObject, int ActionType) { switch (ActionType) { case 1://Create DataRepo.Create(ClassObject); break; case 2://Update DataRepo.Update(ClassObject); break; case 3://Delete DataRepo.Delete(ClassObject); break; default: break; } }