Exemple #1
0
        public IActionResult Apply(int id)
        {
            CarLot lot = carLotsRepository.GetLotDB(id);

            lot.Applyed = true;
            db.SaveChanges();
            return(RedirectToAction("PreModeration"));
        }
Exemple #2
0
        public IActionResult Delete(int id)
        {
            var lot = carLotsRepository.GetLotDB(id);

            if (lot == null)
            {
                return(NotFound());
            }

            return(View(lot));
        }