public ActionResult Detail(Guid?id) { bn_UserProfile bnUser = new bn_UserProfile(); pb_UserProfile model = null; if (id.HasValue) { model = bnUser.GetById(id.Value); } return(View(model)); }
public ActionResult p_UserContact(Guid userId) { bn_UserContact bnUserContact = new bn_UserContact(); bn_UserProfile bnUserProfile = new bn_UserProfile(); ps_UserContact model = new ps_UserContact(); model.UserProfile = bnUserProfile.GetById(userId); model.Contacts = bnUserContact.GetByUserId(userId); return(View(model)); }
public ActionResult Edit(Guid?userId) { if (!userId.HasValue) { userId = ps_Membership.GetUser().UserId; } bn_UserProfile bnUserProfile = new bn_UserProfile(); pb_UserProfile model = new pb_UserProfile(); model = bnUserProfile.GetById((Guid)userId); return(View(model)); }
public ActionResult Index(Guid?userId) { if (!userId.HasValue) { userId = ps_Membership.GetUser().UserId; } bn_UserContact bnUserContact = new bn_UserContact(); bn_UserProfile bnUserProfile = new bn_UserProfile(); ps_UserContact model = new ps_UserContact(); model.Contacts = bnUserContact.GetByUserId((Guid)userId); model.UserProfile = bnUserProfile.GetById((Guid)userId); return(View(model)); }