예제 #1
0
		public AuthPermission UpdateAuthPermission(UpdateAuthPermission request)
		{
			var au =new AuthPermission{Name= request.Name};
			AuthRepoProxy.Execute(db=>{
				db.Update(au);
			});
			
			return 	au;
		}
예제 #2
0
		public  AuthPermission CreateAuthPermission(CreateAuthPermission request)
		{
			var au = new AuthPermission{Name= request.Name};
		
			AuthRepoProxy.Execute(db=>{
				db.InsertAndAssertId(au);
			});
			
			return au;	
		}