// GET: CustomerMaster public ActionResult CustomerMaster() { List <CustomerMList_get_Result> custResult = new List <CustomerMList_get_Result>(); using (SecurityDBEntities entity = new SecurityDBEntities()) { custResult = entity.CustomerMList_get(Convert.ToInt32(Session["ClientId"])).ToList(); } ViewBag.cust = custResult; return(View()); }