public IActionResult Index(int blogId) { var result = _service.Find(blogId); if (!result.Status) { return(RedirectToAction("Error", "Home", new { errorMessage = result.Message })); } ViewBag.BlogId = blogId; return(View(result.Data)); }
public IActionResult Index(int blogId) { var result = _service.Find(blogId); if (!result.Status) { return(RedirectToAction("Error", "Home", new { errorMessage = result.Message })); } ViewBag.BlogId = blogId; return(View(result.Data)); }