Exemplo n.º 1
0
        public ContentResult Delete(Context context, int id)
        {
            var log    = new SysLogModel(context: context);
            var result = context.Authenticated
                ? GroupUtilities.DeleteByApi(
                context: context,
                ss: SiteSettingsUtilities.ApiGroupsSiteSettings(context),
                groupId: id)
                : ApiResults.Unauthorized(context: context);

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