Esempio n. 1
0
        public DetailsAddressVm GetDetailAddressVm(int id)
        {
            Address address = Context.Addresses.Find(id);

            DetailsAddressVm vm = Mapper.Map <Address, DetailsAddressVm>(address);

            return(vm);
        }
Esempio n. 2
0
        public ActionResult DetailsAddress(int Id)
        {
            DetailsAddressVm vm = service.GetDetailAddressVm(Id);

            return(View(vm));
        }