C# 클래스 Core.Profiles.Helpers.ProfileWidgetHelper

파일 보기 프로젝트 열기: coreframework/Core-Framework

공개 메소드들

메소드 설명
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