public ActionResult Index() { var entity = new MyEntity(); var list = entity.GetList(); var model = Mapper.Map<List<HomeViewModel>>(list); return View(model); }
public ActionResult Index() { var entity = new MyEntity(); var list = entity.GetList(); var model = Mapper.Map<List<HomeViewModel>>(list); return View(model); }