public ActionResult FBDetails(int?id) { FeedBackDetails model = fdService.Get(id.HasValue ? id.Value : 0); if (model == null) { model = new FeedBackDetails(); model.CreateTime = DateTime.Now; } ViewBag.ReferUrl = TempData["ReferUrl"]; return(View(model)); }