public ActionResult Create()
        {
            this.StatusList(1);
            var model = new SliderEditViewModel
            {
                Status = 1
            };

            return(View(model));
        }
 public ActionResult Edit(SliderEditViewModel model)
 {
     if (ModelState.IsValid)
     {
         try
         {
             m_sliderWorker.UpdateManagerSlider(model);
             return(RedirectToAction("Index"));
         }
         catch (Exception ex)
         {
             ModelState.AddModelError("General", ex.Message);
         }
     }
     this.StatusList(model.Status);
     return(View(model));
 }