Пример #1
0
        public JsonNetResult GetAccessTemplateDetails(Guid? organisationId, Guid? id)
        {
            var accessTemplateDetailsViewModel = new AccessTemplateDetailsViewModel()
            {
                AccessTemplate = new AccessTemplate()
            };

            if (organisationId.HasValue)
            {
                accessTemplateDetailsViewModel.Initialize(organisationId.Value, id);
            }

            return new JsonNetResult { Data = accessTemplateDetailsViewModel };
        }
Пример #2
0
        public JsonNetResult AccessTemplateDetails(AccessTemplateDetailsViewModel accessTemplate, bool isNew)
        {
            var result = accessTemplate.Save(isNew);

            return new JsonNetResult { Data = result };
        }
Пример #3
0
        public JsonNetResult AccessTemplatePaste(AccessTemplateDetailsViewModel accessTemplate)
        {
            var error = accessTemplate.Paste();

            return new JsonNetResult { Data = error };
        }