public APIResult SetAppName([FromBody] SetAppNameArgsModel args) { try { var username = GetUsername(); if (string.IsNullOrEmpty(args.CurrentCommunityFlag)) { throw new ArgumentNullException("CurrentCommunityFlag"); } if (string.IsNullOrEmpty(args.Name)) { throw new ArgumentNullException("name"); } if (string.IsNullOrEmpty(args.CurrentAppFlag)) { throw new ArgumentNullException("CurrentAppFlag"); } _communityService.SetAppName(args.CurrentCommunityFlag, args.CurrentAppFlag, args.Name); return(Success()); } catch (Exception ex) { _logger.LogError(0, ex, "UpdateAppName有错误发生"); return(Error(ex.Message)); } }
public APIResult SetAppName([FromBody] SetAppNameArgsModel args) { var username = GetUsername(); var communityFlag = args.CommunityFlag; if (string.IsNullOrEmpty(communityFlag)) { throw new ArgumentNullException("communityFlag"); } if (string.IsNullOrEmpty(args.Name)) { throw new ArgumentNullException("name"); } if (string.IsNullOrEmpty(args.AppFlag)) { throw new ArgumentNullException("AppFlag"); } _communityService.SetAppName(communityFlag, args.AppFlag, args.Name); return(Success()); }