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

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