namespace comissions.app.database.Models.Request;

public static class RequestModelExtensions
{
    public static RequestModel ToModel(this Entities.Request sellerProfile)
    {
        return new RequestModel()
        {
            Id = sellerProfile.Id,
            UserId = sellerProfile.UserId,
            RequestDate = sellerProfile.RequestDate,
            AcceptedDate = sellerProfile.AcceptedDate,
            Accepted = sellerProfile.Accepted,
            Amount = sellerProfile.Amount,
            Completed = sellerProfile.Completed,
            CompletedDate = sellerProfile.CompletedDate,
            Declined = sellerProfile.Declined,
            DeclinedDate = sellerProfile.DeclinedDate,
            Message = sellerProfile.Message
        };
    }
}