예제 #1
0
 public Role Create(Role model)
 {
     try
     {
         var user = dal.Create(model);
         return(user);
     }
     catch (Exception)
     {
         throw new Exception("出现程序错误,请联系管理员!");
     }
 }
예제 #2
0
        public bool Create(RoleDTO note)
        {
            try
            {
                return dal.Create(note);
            }

            catch (Exception e)
            {
                Logger.Logger.WriteLog(e);
                throw e;
            }
        }