C# Класс Core.Profiles.Helpers.ProfileWidgetHelper

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BindWidgetModel() публичный статический Метод

public static BindWidgetModel ( ICoreWidgetInstance instance, ICorePrincipal user ) : ProfileWidgetViewModel
instance ICoreWidgetInstance
user ICorePrincipal
Результат ProfileWidgetViewModel

SaveUser() публичный статический Метод

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.
Результат bool

SaveWidget() публичный статический Метод

Saves the widget.
public static SaveWidget ( ProfileWidgetEditModel model ) : ProfileWidgetEditModel
model ProfileWidgetEditModel The model.
Результат ProfileWidgetEditModel

Validate() публичный статический Метод

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.
Результат void