Ejemplo n.º 1
0
 public ActionResult SaveGroup(AdminRoleInfo roleinfo)
 {
     try
     {
         if (adminUserBLL.ExistsAdminRoleName(roleinfo.id, roleinfo.RoleName))
         {
             return(Json(new { Error = 1, Message = "此分組名已存在" }));
         }
         var falg = adminUserBLL.SaveAdminRoleInfo(roleinfo);
         if (falg)
         {
             return(Json(new { Error = 0 }));
         }
         else
         {
             return(Json(new { Error = 1 }));
         }
     }
     catch (Exception ex)
     {
         LogHelper.Error(ex);
         return(Json(new { Error = 1, Message = ex.Message }));
     }
 }