Пример #1
0
        public DetailsAddressVm GetDetailAddressVm(int id)
        {
            Address address = Context.Addresses.Find(id);

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

            return(vm);
        }
Пример #2
0
        public ActionResult DetailsAddress(int Id)
        {
            DetailsAddressVm vm = service.GetDetailAddressVm(Id);

            return(View(vm));
        }