Table of Contents

Class CompanyCreationRequestDto

Namespace
GastroSky.Models.DTO.Company
Assembly
GastroSky.Models.dll

Request DTO for creating a new GastroSky.Models.DTO.Company.

public sealed class CompanyCreationRequestDto
Inheritance
CompanyCreationRequestDto
Inherited Members

Properties

Address

Company address.

[Required]
public string Address { get; set; }

Property Value

string

BusinessIdentificationNumber

E.g. CHE-000.000.000

public string? BusinessIdentificationNumber { get; set; }

Property Value

string

CountryCodeISO

Company address country code (ISO, 3-letter string).

[Required]
[StringLength(3)]
public string CountryCodeISO { get; set; }

Property Value

string

Email

Company email address.

[Required]
[EmailAddress]
public string Email { get; set; }

Property Value

string

LocationId

[Required]
public long LocationId { get; set; }

Property Value

long

Name

Company name (including legal form suffix).

[Required]
public string Name { get; set; }

Property Value

string

Phone

Company phone number.

[Required]
[Phone]
public string Phone { get; set; }

Property Value

string

ProfilePictureBytesBase64

Profile picture, Base64-encoded.

public string? ProfilePictureBytesBase64 { get; set; }

Property Value

string

UserId

User.Id of the GastroSky.Models.DTO.User with which to associate the newly created GastroSky.Models.DTO.Company.

public long? UserId { get; set; }

Property Value

long?

WebsiteURL

The company's website URL.

[Url]
public string? WebsiteURL { get; set; }

Property Value

string