// GET: ClientMaster public ActionResult ClientMaster() { List <ClientMList_get_Result> client_Results = new List <ClientMList_get_Result>(); using (SecurityDBEntities context = new SecurityDBEntities()) { client_Results = context.ClientMList_get(Convert.ToInt32(Session["ClientId"])).ToList(); } ViewBag.details = client_Results; return(View()); }