29 lines
960 B
C#
29 lines
960 B
C#
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CPRNIMS.Infrastructure.Models.Account
|
|
{
|
|
public class User
|
|
{
|
|
[Required(ErrorMessage = "User Name is required")]
|
|
public string? UserName { get; set; }
|
|
public string? FullName { get; set; }
|
|
[JsonProperty("password")]
|
|
[Required(ErrorMessage = "Password is required")]
|
|
public string? Password { get; set; }
|
|
[JsonProperty("errMessage")]
|
|
public bool ErrMessage { get; set; } = false;
|
|
public string UserId { get; set; } = string.Empty;
|
|
public string URLAttachment { get; set; } = string.Empty;
|
|
public string? Token { get; set; }
|
|
public string? Company { get; set; }
|
|
public string? MyAccess { get; set; }
|
|
public int DepartmentId { get; set; }
|
|
}
|
|
}
|