Exemplo n.º 1
0
        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)));
        }
Exemplo n.º 2
0
        public IActionResult AddPurse()
        {
            var model = new AddPurseViewModel();

            return(View(model));
        }