public DeleteAddressVm GetDeleteAddressVm(int id) { Address address = Context.Addresses.Find(id); DeleteAddressVm vm = Mapper.Map <Address, DeleteAddressVm>(address); return(vm); }
public ActionResult Delete(int Id) { DeleteAddressVm vm = service.GetDeleteAddressVm(Id); return(View(vm)); }