Ejemplo n.º 1
0
 public void Update(Permissions model)
 {
     var target = Find(model.ID);
     DB_Service.Attach<Permissions>(target);
     target.Name = model.Name;
     target.Action = model.Action;
     target.Namespace = model.Namespace;
     target.Controller = model.Controller;
     target.Description = model.Description;
     target.DepartmentID = model.DepartmentID;
     DB_Service.Commit();
 }
Ejemplo n.º 2
0
 public void Delete(Permissions model)
 {
     var target = IncludeFind(model.ID);
     DB_Service.Remove<Permissions>(target);
     DB_Service.Commit();
 }
Ejemplo n.º 3
0
 public void Create(Permissions model)
 {
     DB_Service.Add<Permissions>(model);
     DB_Service.Commit();
 }