public ActionResult Details(string url) { var model = new DetailViewModel(); if (!string.IsNullOrEmpty(url)) { model.ArtileDetail = _artilesService.GetByUrl(url); } var modelEmail = _configService.GetbyKey("email").Value; var modelPhone = _configService.GetbyKey("phone").Value; if (!string.IsNullOrEmpty(modelEmail)) { ViewBag.email = modelEmail; } if (!string.IsNullOrEmpty(modelPhone)) { ViewBag.phone = modelPhone; } model.ListMoiNhat = _artilesService.GetDataNew(); model.ListCungChuDe = _artilesService.GetDataCungChuDe(); return(View(model)); }