public ActionResult ViewMain() { long Id = 0; try { Id = long.Parse(SDao.GetValue("Main_Menu")); } catch { Id = 0; } var lMneu = Dao.ViewByTypeId(Id); return(PartialView(lMneu)); }