示例#1
0
        public ContentResult Create(Context context)
        {
            var log    = new SysLogModel(context: context);
            var result = context.Authenticated
                ? GroupUtilities.CreateByApi(
                context: context,
                ss: SiteSettingsUtilities.ApiGroupsSiteSettings(context))
                : ApiResults.Unauthorized(context: context);

            log.Finish(
                context: context,
                responseSize: result.Content.Length);
            return(result);
        }