C# Class Core.Profiles.Helpers.ProfileWidgetHelper

Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Méthode Description
BindWidgetModel ( ICoreWidgetInstance instance, ICorePrincipal user ) : ProfileWidgetViewModel
SaveUser ( ProfileWidgetViewModel model, System.Web.Mvc.FormCollection collection, UserProfile userProfile, ICorePrincipal currentUser, ProfileWidget widget, User &user ) : bool

Registers the user.

SaveWidget ( ProfileWidgetEditModel model ) : ProfileWidgetEditModel

Saves the widget.

Validate ( System.Web.Mvc.FormCollection collection, ModelStateDictionary modelState, UserProfile userProfile ) : void

Validates the user profile.

Method Details

BindWidgetModel() public static méthode

public static BindWidgetModel ( ICoreWidgetInstance instance, ICorePrincipal user ) : ProfileWidgetViewModel
instance ICoreWidgetInstance
user ICorePrincipal
Résultat ProfileWidgetViewModel

SaveUser() public static méthode

Registers the user.
public static SaveUser ( ProfileWidgetViewModel model, System.Web.Mvc.FormCollection collection, UserProfile userProfile, ICorePrincipal currentUser, ProfileWidget widget, User &user ) : bool
model ProfileWidgetViewModel The model.
collection System.Web.Mvc.FormCollection The collection.
userProfile Core.Profiles.NHibernate.Models.UserProfile The user profile.
currentUser ICorePrincipal The current user.
widget Core.Profiles.NHibernate.Models.ProfileWidget The widget.
user Core.Framework.NHibernate.Models.User The user.
Résultat bool

SaveWidget() public static méthode

Saves the widget.
public static SaveWidget ( ProfileWidgetEditModel model ) : ProfileWidgetEditModel
model ProfileWidgetEditModel The model.
Résultat ProfileWidgetEditModel

Validate() public static méthode

Validates the user profile.
public static Validate ( System.Web.Mvc.FormCollection collection, ModelStateDictionary modelState, UserProfile userProfile ) : void
collection System.Web.Mvc.FormCollection The collection.
modelState ModelStateDictionary State of the model.
userProfile Core.Profiles.NHibernate.Models.UserProfile The user profile.
Résultat void