public PartialViewResult GetMenu(string UserId) { Permissionviewmodel vm = new Permissionviewmodel(); List <Menumaster> _lst = new List <Menumaster>(); if (UserId == null) { vm = Commonhelper.Getmenu(); } else { // vm = Commonhelper.Getmenu(UserId); } return(PartialView("_Permission", vm)); }