websitepanel/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/AccountModel.cs
2015-01-10 06:00:59 -08:00

32 lines
No EOL
833 B
C#

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using WebsitePanel.Providers.HostedSolution;
namespace WebsitePanel.WebDavPortal.Models
{
public class AccountModel
{
[Required]
[Display(Name = @"Login")]
public string Login { get; set; }
[Required]
[DataType(DataType.Password)]
[Display(Name = @"Password")]
public string Password { get; set; }
public string UserName
{
get
{
return !string.IsNullOrEmpty(Login) ? Login.Split('@')[0] : string.Empty;
}
}
public string DisplayName { get; set; }
public IEnumerable<ExchangeAccount> Groups { get; set; }
public string LdapError { get; set; }
}
}