public IActionResult OnGet()
        {
            ViewData["MarkaId"]  = new SelectList(_markatServices.GetMarkat(), "MarkaId", "MarkaEmer");
            ViewData["ModeliId"] = new SelectList(_services.GetModelet(), "ModeliId", "ModeliEmer");

            return(Page());
        }
        public IActionResult OnGet(Guid id)
        {
            Markat = _markatServices.GetMarkat().Select(x => new SelectListItem {
                Text  = x.MarkaEmer,
                Value = x.MarkaId
            })
                     .ToList();

            Modelet = _modeletServices.GetModelet().Select(x => new SelectListItem
            {
                Text  = x.ModeliEmer,
                Value = x.ModeliId
            })
                      .ToList();
            Makina = _services.GetMakina(id);

            if (Makina == null)
            {
                return(NotFound());
            }
            return(Page());
        }
 public void OnGet()
 {
     Modeli = _services.GetModelet().ToList();
     Marka  = _markatServices.GetMarkat().ToList();
 }