shoc-backend/SeaHaven.Services/DTOs/LocationDTOs.cs
Arthur Bassi 61923b2a7d feat(work-orders): stamp board create account from location
Org-wide create no longer depends on customer name. POST /workorders/board requires locationId and stamps WorkOrder.AccountId from Location.AccountId.
2026-08-26 09:12:48 -03:00

76 lines
2.5 KiB
C#

namespace SeaHaven.Services.DTOs
{
public class LocationDTO
{
public int Id { get; set; }
public string? Name { get; set; }
public string? Title { get; set; }
public string? Address1 { get; set; }
public string? Address2 { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? Zip { get; set; }
public string? PhoneNumber { get; set; }
public string? Email { get; set; }
public string? Status { get; set; }
public int? AccountId { get; set; }
public DateTime? CreatedDate { get; set; }
public string? CreatedBy { get; set; }
}
public class CreateLocationDTO
{
public required string LocationName { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? Zipcode { get; set; }
public int? AccountId { get; set; }
}
public class UpdateLocationDTO
{
public string? LocationName { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? Zipcode { get; set; }
public int? AccountId { get; set; }
}
public class LocationCreateRequestDTO
{
public string? Name { get; set; }
public string? Title { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? ZipCode { get; set; }
public string? Phone { get; set; }
public string? ContactEmail { get; set; }
public string? Status { get; set; }
public int? AccountId { get; set; }
}
public class LocationUpdateRequestDTO
{
public string? Name { get; set; }
public string? Title { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? State { get; set; }
public string? ZipCode { get; set; }
public string? Phone { get; set; }
public string? ContactEmail { get; set; }
public string? Status { get; set; }
public int? AccountId { get; set; }
}
public class SiteOptionDTO
{
public int Id { get; set; }
public string? Code { get; set; }
public string? City { get; set; }
public string? State { get; set; }
}
}