public ActionResult Details(int id = 0) { RevenueType revenuetype = objSourceMastersModel.GetRevenueTypeById(id); if (revenuetype == null) { return(HttpNotFound()); } return(View(revenuetype)); }