using System.Collections.Generic;
using SepehrFlightApiSampleClient.Booking.WinForms.Book.InMemoryDatabase.FailedRequests.Model;

namespace SepehrFlightApiSampleClient.Booking.WinForms.Book.InMemoryDatabase.FailedRequests.Repository
{
    public class FailedRequestRepository
    {
        private static readonly List<FailedRequest> FailedRequestList = new List<FailedRequest>();

        public static void Add(FailedRequest failedRequest)
        {
            FailedRequestList.Add(failedRequest);
        }

        public static List<FailedRequest> GetAll()
        {
            return FailedRequestList;
        }
    }
}
