// GET: Dealership/Edit/5
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var dealership = DealershipMgr.Get(id);

            if (dealership == null)
            {
                return(NotFound());
            }
            return(View(dealership));
        }
 // GET: Dealership
 public async Task <IActionResult> Index()
 {
     return(View(DealershipMgr.Get()));
 }
Beispiel #3
0
 public IActionResult Get()
 {
     return(Ok(_contextDmgr.Get()));
 }
 public IEnumerable <Dealership> Get()
 {
     return(_context.Get());
 }
Beispiel #5
0
 public Dealership Get(int id)
 {
     return(DealershipMgr.Get(id));
 }
Beispiel #6
0
 public List <Dealership> Get()
 {
     return(DealershipMgr.Get());
 }
Beispiel #7
0
 // GET: Dealership
 public IActionResult Index()
 {
     return(View(_contextDmgr.Get()));
 }
Beispiel #8
0
 public IEnumerable <Dealership> Get()
 {
     return(_dealershipMgr.Get());
 }
 public IEnumerable <Dealership> GetDealership()
 {
     return(dealershipMgr.Get());
     // return _context.Dealership;
 }