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