public RedirectResult Add(Endpoint item) { if (!string.IsNullOrWhiteSpace(item?.Url)) { _repository.Add(item); } return(Redirect("Index")); }