// GET: Clients/Edit public ActionResult Edit(int id) { var cp = new ClientProcess(); var cat = cp.Find(id); return(View(cat)); }
// GET: Clients/Details public ActionResult Details(int id) { var cp = new ClientProcess(); var client = cp.Find(id); return(View(client)); }
// GET: Clients/Edit public ActionResult Edit(int id) { var cp = new ClientProcess(); var cat = cp.Find(id); var cp2 = new CountryProcess(); var lista = cp2.SelectList(); ViewData["Country"] = lista; return(View(cat)); }
// GET: Clients/Details public ActionResult Details(int id) { var cp = new ClientProcess(); var client = cp.Find(id); var cp2 = new CountryProcess(); var CountryName = cp2.Find(client.CountryId); ViewData["Country"] = CountryName.Name; return(View(client)); }
// GET: Clients/Details public ActionResult Details(int id) { var cp = new ClientProcess(); var client = cp.Find(id); var cop = new CountryProcess(); var descCountry = cop.Find(client.CountryId); ViewData["Country"] = descCountry.Name; return(View(client)); }
// GET: Orders/Details public ActionResult Details(int id) { var op = new OrderProcess(); var order = op.Find(id); var cp = new ClientProcess(); var descClient = cp.Find(order.ClientId); ViewData["Client"] = descClient.FirstName + " " + descClient.LastName; return(View(order)); }
public ActionResult ClientMovements(int id) { Client client = db.Find(id); List <Movement> Movements = dbMovement.GetMovementsByClient(id); ViewBag.Cliente = client; return(View(Movements)); }
// GET: Ratings/Details public ActionResult Details(int id) { var rp = new RatingProcess(); var rtng = rp.Find(id); var cp = new ClientProcess(); var descClient = cp.Find(rtng.ClientId); ViewData["Client"] = descClient.FirstName + " " + descClient.LastName; var pp = new ProductProcess(); var descProd = pp.Find(rtng.ProductId); ViewData["Product"] = descProd.Description; return(View(rtng)); }