Exemple #1
0
        public IActionResult DeleteById(int id)
        {
            var foundType = _memberTypeService.Get(id);

            if (foundType == null)
            {
                return(NotFound());
            }

            _memberTypeService.Delete(foundType, _backofficeSecurityAccessor.BackOfficeSecurity?.CurrentUser?.Id ?? -1);
            return(Ok());
        }
Exemple #2
0
 protected override void DeleteContentType(IContentTypeBase contentType)
 {
     _service.Delete((IMemberType)contentType);
 }