private ContactDetailViewModel GetDetail() { var model = _contactDetailService.GetDefaultContact(); var contactvm = Mapper.Map <ContactDetail, ContactDetailViewModel>(model); return(contactvm); }
// GET: Contact public ActionResult Index() { var model = _contactDetailService.GetDefaultContact(); var contactViewModel = Mapper.Map <ContactDetail, ContactDetailViewModel>(model); return(View(contactViewModel)); }
private ContactDetailViewModel getContactDetail() { var contactDetailModel = _cdService.GetDefaultContact(); var contactDetailVm = _mapper.Map <ContactDetailViewModel>(contactDetailModel); return(contactDetailVm); }
private ThongTinLienLacModel GetDetail() { var model = Mapper.Map <ThongTinLienLac, ThongTinLienLacModel>(_contactDetailService.GetDefaultContact()); return(model); }