public ActionResult Edit(FeedDefinitionBindingModel bindingModel)
 {
     if (ModelState.IsValid)
     {
         var feedDefinition = bindingModel.ToFeedDefinition();
         repo.Update(feedDefinition);
         return(RedirectToAction("Index"));
     }
     return(View(bindingModel));
 }
        public ActionResult Create(FeedDefinitionBindingModel model)
        {
            if (ModelState.IsValid)
            {
                var feedDefinition = model.ToFeedDefinition();
                repo.Create(feedDefinition);
                return(RedirectToAction("Index"));
            }

            return(View(model));
        }