public ActionResult MyProfile(ShoppingCartModel model) { List <ProfileDataModel> prof = model.getCustomerDetails((string)Session["USERID"]); if (!prof.Any()) { ViewBag.Message = "Please Login to see your Profile"; } return(View(prof)); }