public IActionResult AddPurse(AddPurseViewModel postModel) { var dboPurses = new PursesDBO(); dboPurses.PurseName = postModel.PurseName; dboPurses.Brand = postModel.Brand; dboPurses.Color = postModel.Color; dboPurses.Price = postModel.Price; dboPurses.Description = postModel.Description; _PursesRepository.InsertPurses(dboPurses); return(RedirectToAction(nameof(Purses))); }
public IActionResult AddPurse() { var model = new AddPurseViewModel(); return(View(model)); }