Merge branch 'master' of http://git2.aycode.com/Adam/TourIAm
This commit is contained in:
commit
5dcd94fd97
|
|
@ -378,6 +378,8 @@ namespace TIAM.Database.Test
|
|||
ToAddress = toAddress,
|
||||
PassengerCount = 3,
|
||||
Price = 20000,
|
||||
ContactEmail = "xyztest@gmail.hu",
|
||||
ContactPhone = "+3671542771",
|
||||
TransferStatusType = TransferStatusType.OrderConfirmed,
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
namespace TIAM.Entities.Products;
|
||||
|
||||
public interface IEmailMessageForeignKey<T>
|
||||
public interface IProductForeignKey<T>
|
||||
{
|
||||
public T ProductId { get; set; }
|
||||
}
|
||||
|
||||
public interface IProductForeignKey : IEmailMessageForeignKey<Guid>
|
||||
public interface IProductForeignKey : IProductForeignKey<Guid>
|
||||
{ }
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ using TIAM.Entities.Users;
|
|||
namespace TIAM.Entities.Transfers;
|
||||
|
||||
[Table(nameof(Transfer))]
|
||||
public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey, IUserForeignKey
|
||||
public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey<Guid?>, IUserForeignKey
|
||||
{
|
||||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public Guid Id { get; set; }
|
||||
|
|
@ -19,7 +19,7 @@ public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey, IUserFor
|
|||
public int OrderId { get; set; }
|
||||
|
||||
public Guid UserId { get; set; }
|
||||
public Guid ProductId { get; set; }
|
||||
public Guid? ProductId { get; set; }
|
||||
//public Guid? UserProductMappingId { get; set; }
|
||||
//public Guid? UserProductToCarId { get; set; }
|
||||
|
||||
|
|
@ -37,6 +37,10 @@ public class Transfer: IEntityGuid, ITimeStampInfo, IProductForeignKey, IUserFor
|
|||
[MaxLength(50)] public string? FlightNumber { get; set; }
|
||||
[MaxLength(200)] public string FromAddress { get; set; }
|
||||
[MaxLength(200)] public string? ToAddress { get; set; }
|
||||
|
||||
public string ContactEmail {get;set; }
|
||||
public string ContactPhone {get;set; }
|
||||
|
||||
[MaxLength(250)] public string? Comment { get; set; }
|
||||
|
||||
//[Column("ReferralProductId")]
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ namespace TIAMWebApp.Server.Services
|
|||
|
||||
var price = GetSeatNumberPrice(in tranferDestinationPrice, seatNumber);
|
||||
|
||||
//TODO: ExtraPrice - J.
|
||||
//TODO: ExtraPrice - J. seatnum percent price, FirstName, LastName, CascadeDelete
|
||||
//if (baseDestination.Id == fromTransferDestination.Id && )
|
||||
return price;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue