namespace Gremlin_BlazorServer.ViewModels { public class AccountViewModel { public string AccountName { get; set; } public string AccountStreet { get; set; } public uint AccountZIP { get; set; } public string AccountCity { get; set; } public string AccountTypeCode { get; set; } public AccountViewModel(string accountName, string accountStreet, uint accountZIP, string accountCity, string accountTypeCode) { AccountName = accountName ?? throw new ArgumentNullException(nameof(accountName)); AccountStreet = accountStreet ?? throw new ArgumentNullException(nameof(accountStreet)); AccountZIP = accountZIP; AccountCity = accountCity ?? throw new ArgumentNullException(nameof(accountCity)); AccountTypeCode = accountTypeCode ?? throw new ArgumentNullException(nameof(accountTypeCode)); } } }