Пример #1
0
        // GET: Clients/Edit
        public ActionResult Edit(int id)
        {
            var cp  = new ClientProcess();
            var cat = cp.Find(id);

            return(View(cat));
        }
Пример #2
0
        // GET: Clients/Details
        public ActionResult Details(int id)
        {
            var cp     = new ClientProcess();
            var client = cp.Find(id);

            return(View(client));
        }
Пример #3
0
        // 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));
        }
Пример #4
0
        // 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));
        }
Пример #5
0
        // 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));
        }
Пример #6
0
        // 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));
        }
Пример #7
0
        public ActionResult ClientMovements(int id)
        {
            Client          client    = db.Find(id);
            List <Movement> Movements = dbMovement.GetMovementsByClient(id);

            ViewBag.Cliente = client;
            return(View(Movements));
        }
Пример #8
0
        // 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));
        }