public ActionResult EditCategory(long categoryId) { logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: EditCategory - Begin"); Category objCategory = null; try { objCategory = dataaccess.GetCategoryById(categoryId); ViewBag.Title = "Edit Category"; } catch (Exception ex) { logginghelper.Log(LoggingLevels.Error, "Class: " + classname + " :: EditCategory" + ex); } logginghelper.Log(LoggingLevels.Info, "Class: " + classname + " :: EditCategory - Begin"); return(View(objCategory)); }