public async Task<IActionResult> Index() { var aboutMe = await _aboutMeService.Get(1); if (aboutMe.ResultStatus == ResultStatus.Success) { return View(aboutMe.Data); } if (aboutMe.ResultStatus == ResultStatus.Error) { return NotFound(); } return View(); }
public async Task <IActionResult> About() { var aboutMe = await _aboutMeService.Get(1); if (aboutMe.ResultStatus == ResultStatus.Error) { return(NotFound()); } if (aboutMe.ResultStatus == ResultStatus.Success) { var contactInfo = await _contactInfoService.Get(1); ViewBag.ContactInfo = contactInfo.Data.ContactInfo; ViewBag.About = "active"; return(View(aboutMe.Data)); } return(NotFound()); }