public AuthPermission UpdateAuthPermission(UpdateAuthPermission request) { var au =new AuthPermission{Name= request.Name}; AuthRepoProxy.Execute(db=>{ db.Update(au); }); return au; }
public AuthPermission CreateAuthPermission(CreateAuthPermission request) { var au = new AuthPermission{Name= request.Name}; AuthRepoProxy.Execute(db=>{ db.InsertAndAssertId(au); }); return au; }