public IActionResult Create(BlogPostMD metaData) { var result = _service.Create(metaData); if (!result.Status) { result.Data.ReferenceTypeOptions = _service.GetOptions(); ViewBag.ErrorMessage = result.Message; ViewBag.BlogId = metaData.BlogId; return(View(metaData)); } return(RedirectToAction("Index", "BlogPost", new { blogId = metaData.BlogId })); }