mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
All references are changed to BaseViewModel AdminViewModel class still present, but only temporarily as a stepping stone to smooth transition BaseViewModel.Menu now represents either the "admin" or "main" navigation depending on location MenuFilter now uses the AdminFilter.IsApplied flag to determine which primary nav to use IsApplied property moved to AdminFilter which is a better location for a universal flag than the theme selector --HG-- branch : dev
28 lines
799 B
C#
28 lines
799 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Web.Mvc;
|
|
using Orchard.ContentManagement;
|
|
using Orchard.Mvc.ViewModels;
|
|
using Orchard.Users.Models;
|
|
|
|
namespace Orchard.Users.ViewModels {
|
|
public class UserEditViewModel : BaseViewModel {
|
|
[HiddenInput(DisplayValue = false)]
|
|
public int Id {
|
|
get { return User.Item.Id; }
|
|
}
|
|
|
|
[Required]
|
|
public string UserName {
|
|
get { return User.Item.Record.UserName; }
|
|
set { User.Item.Record.UserName = value; }
|
|
}
|
|
|
|
[Required]
|
|
public string Email {
|
|
get { return User.Item.Record.Email; }
|
|
set { User.Item.Record.Email = value; }
|
|
}
|
|
|
|
public ContentItemViewModel<User> User { get; set; }
|
|
}
|
|
} |