public ActionResult Edit(int id = 0) { Series series = seriesRepository.GetByID(id); SeriesViewModel model = new SeriesViewModel(); if (series != null) { model = new SeriesViewModel { Name = series.Name, ID = series.ID }; } return(View(model)); }
public ActionResult Edit(int id = 0) { Series series = seriesRepository.GetByID(id); SeriesViewModel model = new SeriesViewModel(); if (series != null) { model = new SeriesViewModel { Name = series.Name, ID = series.ID }; } return(View(model)); }