public MenuSubModule Add(MenuSubModule pt) { _unitOfWork.Repository <MenuSubModule>().Insert(pt); return(pt); }
public void Delete(MenuSubModule pt) { _unitOfWork.Repository <MenuSubModule>().Delete(pt); }
public void Update(MenuSubModule pt) { pt.ObjectState = ObjectState.Modified; _unitOfWork.Repository <MenuSubModule>().Update(pt); }
public MenuSubModule Create(MenuSubModule pt) { pt.ObjectState = ObjectState.Added; _unitOfWork.Repository <MenuSubModule>().Insert(pt); return(pt); }