public IActionResult Apply(int id) { CarLot lot = carLotsRepository.GetLotDB(id); lot.Applyed = true; db.SaveChanges(); return(RedirectToAction("PreModeration")); }
public IActionResult Delete(int id) { var lot = carLotsRepository.GetLotDB(id); if (lot == null) { return(NotFound()); } return(View(lot)); }