public ActionResult Checkout(int petSN) { Vw_Pet pet = PetModel.getVwPetBySN(petSN); List <Comm_Cosmetology> cosmetologyList = CosmetologyModel.getCosmetologyList(); ViewBag.cosmetologySN = new SelectList(cosmetologyList, "SN", "cosmetologyName"); ViewBag.pet = pet; return(View(pet)); }
public ActionResult Details(int?SN) { if (SN == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Vw_Pet pet = PetModel.getVwPetBySN(Convert.ToInt32(SN)); return(View(pet)); }