public void bl_should_create_fieldGroup() { var obj = _bl.CreateFieldGroup(); obj.Slug = "test"; Assert.NotNull(obj); }
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)); }