public int getGia() { var id = Request.Query["id"]; try { return(gia.Get(Convert.ToInt32(id)).Sotien); } catch (System.Exception ex) { return(0); } }
public int getGia() { var id = Request.Query["id"]; return(gia.Get(Convert.ToInt32(id)).Sotien); }
public IActionResult Edit(int id) { ViewBag.Tours = tourRepo.GetAll(); return(View(giaRepo.Get(id))); }