public ActionResult Create(GanreDTO collection) { var bookDto = new GanreDTO { FirstName = collection.FirstName }; ganreService.MakeGanre(bookDto); return(RedirectToActionPermanent("EditOrCreate", "Main")); }
public void MakeGanre(GanreDTO orderDto) { Ganre ganre = new Ganre { FirstName = orderDto.FirstName, }; db.Ganre.Create(ganre); db.Save(); }
public ActionResult Create() { GanreDTO ganre = new GanreDTO(); return(View(ganre)); }