Api/Netina.Domain/CommandQueries/Commands/ShippingCommands.cs

25 lines
657 B
C#

using Netina.Domain.Dtos.SmallDtos;
namespace Netina.Domain.CommandQueries.Commands;
public sealed record CreateShippingCommand (
string Name,
string WarehouseName,
bool IsExpressShipping,
bool IsShipBySeller ,
bool IsOriginalWarehouse,
double DeliveryCost,
int WorkingDays) : IRequest<ShippingSDto>;
public sealed record UpdateShippingCommand(
Guid Id,
string Name,
string WarehouseName,
bool IsExpressShipping,
bool IsShipBySeller,
bool IsOriginalWarehouse,
double DeliveryCost,
int WorkingDays) : IRequest<bool>;
public sealed record DeleteShippingCommand(
Guid Id) : IRequest<bool>;