public ActionResult DeleteCustomUrl(UrlIdDto dto)
        {
            ActionResult     actionResult       = new ActionResult();
            PageUrlsServices pageUrlsController = new PageUrlsServices();
            PageUrlResult    pageUrlResult;

            try
            {
                pageUrlResult = pageUrlsController.DeleteCustomUrl(dto);
                if (!pageUrlResult.Success)
                {
                    actionResult.AddError("DeleteCustomUrl.Error", pageUrlResult.ErrorMessage);
                }
            }
            catch (Exception exc)
            {
                actionResult.AddError(HttpStatusCode.InternalServerError.ToString(), exc.Message);
            }
            if (actionResult.IsSuccess)
            {
                actionResult.Data = GetCustomUrls(dto.TabId);
            }

            return(actionResult);
        }
        public ActionResult UrlAddUpdate(SeoUrl dto)
        {
            ActionResult     actionResult       = new ActionResult();
            PageUrlsServices pageUrlsController = new PageUrlsServices();
            PageUrlResult    pageUrlResult;

            try
            {
                if (dto.SaveUrl.Id > 0)
                {
                    pageUrlResult = pageUrlsController.UpdateCustomUrl(dto);
                    if (!pageUrlResult.Success)
                    {
                        actionResult.AddError("UpdateCustomUrl.Error", pageUrlResult.ErrorMessage);
                        actionResult.Data = new { pageUrlResult.SuggestedUrlPath };
                    }
                }
                else
                {
                    pageUrlResult = pageUrlsController.CreateCustomUrl(dto);
                    if (!pageUrlResult.Success)
                    {
                        actionResult.AddError("CreateCustomUrl.Error", pageUrlResult.ErrorMessage);
                        actionResult.Data = new { pageUrlResult.SuggestedUrlPath };
                    }
                }
            }
            catch (Exception exc)
            {
                actionResult.AddError(HttpStatusCode.InternalServerError.ToString(), exc.Message);
            }
            if (actionResult.IsSuccess)
            {
                actionResult.Data = GetCustomUrls(dto.TabId);
            }

            return(actionResult);
        }