C# Class Core.Profiles.Helpers.ProfileWidgetHelper

Mostrar archivo Open project: coreframework/Core-Framework

Public Methods

Method 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 method

public static BindWidgetModel ( ICoreWidgetInstance instance, ICorePrincipal user ) : ProfileWidgetViewModel
instance ICoreWidgetInstance
user ICorePrincipal
return ProfileWidgetViewModel

SaveUser() public static method

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.
return bool

SaveWidget() public static method

Saves the widget.
public static SaveWidget ( ProfileWidgetEditModel model ) : ProfileWidgetEditModel
model ProfileWidgetEditModel The model.
return ProfileWidgetEditModel

Validate() public static method

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.
return void