public void Delete(AffiliatePart affiliatePart) {
            int id = affiliatePart.AffiliateId;
            _contentManager.Remove(affiliatePart.ContentItem);

            var affiliate = GetById(id);
            if (affiliate != null) {
                //Delete(affiliate);
            }
        }
 public static string AffiliateRemove(this UrlHelper urlHelper, AffiliatePart affiliatePart)
 {
     return urlHelper.Action("Remove", "AffiliateAdmin", new { affiliateId = affiliatePart.Id, area = "Liveo.Platform" });
 }