Example #1
0
 public MenuSubModule Add(MenuSubModule pt)
 {
     _unitOfWork.Repository <MenuSubModule>().Insert(pt);
     return(pt);
 }
Example #2
0
 public void Delete(MenuSubModule pt)
 {
     _unitOfWork.Repository <MenuSubModule>().Delete(pt);
 }
Example #3
0
 public void Update(MenuSubModule pt)
 {
     pt.ObjectState = ObjectState.Modified;
     _unitOfWork.Repository <MenuSubModule>().Update(pt);
 }
Example #4
0
 public MenuSubModule Create(MenuSubModule pt)
 {
     pt.ObjectState = ObjectState.Added;
     _unitOfWork.Repository <MenuSubModule>().Insert(pt);
     return(pt);
 }