make some field nullable for employee in integration
This commit is contained in:
parent
2b938d35b2
commit
6f82ff2ae9
|
|
@ -46,21 +46,17 @@ public class IntegrationEmployeeRequest
|
|||
[StringLength(40, ErrorMessage = "Sales org description cannot exceed 40 characters.")]
|
||||
public string SalesOrgDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Distribution channel is required.")]
|
||||
[StringLength(2, ErrorMessage = "Distribution channel cannot exceed 2 characters.")]
|
||||
public string DistChannel { get; set; }
|
||||
public string? DistChannel { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Distribution channel description is required.")]
|
||||
[StringLength(20, ErrorMessage = "Distribution channel description cannot exceed 20 characters.")]
|
||||
public string DistChannelDescription { get; set; }
|
||||
public string? DistChannelDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Division is required.")]
|
||||
[StringLength(2, ErrorMessage = "Division cannot exceed 2 characters.")]
|
||||
public string Division { get; set; }
|
||||
public string? Division { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Division description is required.")]
|
||||
[StringLength(20, ErrorMessage = "Division description cannot exceed 20 characters.")]
|
||||
public string DivisionDescription { get; set; }
|
||||
public string? DivisionDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Region/Area code is required.")]
|
||||
[StringLength(3, ErrorMessage = "Region/Area code cannot exceed 3 characters.")]
|
||||
|
|
@ -82,21 +78,17 @@ public class IntegrationEmployeeRequest
|
|||
[StringLength(20, ErrorMessage = "Territory description cannot exceed 20 characters.")]
|
||||
public string TerritoryDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Plant is required.")]
|
||||
[StringLength(4, ErrorMessage = "Plant cannot exceed 4 characters.")]
|
||||
public string Plant { get; set; }
|
||||
public string? Plant { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Plant description is required.")]
|
||||
[StringLength(30, ErrorMessage = "Plant description cannot exceed 30 characters.")]
|
||||
public string PlantDescription { get; set; }
|
||||
public string? PlantDescription { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Status is required.")]
|
||||
[StringLength(1, ErrorMessage = "Status cannot exceed 1 character.")]
|
||||
public string Status { get; set; }
|
||||
public string? Status { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Status description is required.")]
|
||||
[StringLength(30, ErrorMessage = "Status description cannot exceed 30 characters.")]
|
||||
public string StatusDescription { get; set; }
|
||||
public string? StatusDescription { get; set; }
|
||||
}
|
||||
|
||||
public class EmployeeIntegrationByComapanyRequest
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user