예제 #1
0
        public void bl_should_create_fieldGroup()
        {
            var obj = _bl.CreateFieldGroup();

            obj.Slug = "test";
            Assert.NotNull(obj);
        }
예제 #2
0
        public IActionResult PostGroup([FromBody] FieldGroupViewModel vmdl)
        {
            var obj = _bl.CreateFieldGroup();

            vmdl.ApplyChanges(obj, _bl);
            _bl.SaveChanges();
            vmdl.Refresh(obj);
            _log.LogInformation("New FieldGroup '{0}' created by '{1}'", vmdl.Name, User.Identity.Name);
            return(Ok(vmdl));
        }