Ejemplo n.º 1
0
        public async Task <SellerOutput> Execute(int sellerID)
        {
            RePro.Domain.Sellers.Seller seller = await _sellerRepository.Get(sellerID);

            if (seller == null)
            {
                throw new SellerNotFoundException($"The seller {sellerID} does not exists or is not processed yet.");
            }

            return(new SellerOutput(seller));
        }
Ejemplo n.º 2
0
 public SellerOutput(RePro.Domain.Sellers.Seller seller)
 {
     SellerID        = seller.SellerID;
     AddressPremises = seller.AddressPremises;
     AdressLine1     = seller.AdressLine1;
     AddressLine2    = seller.AddressLine2;
     City            = seller.City;
     EmailID         = seller.EmailID;
     MobileNo        = seller.MobileNo;
     PAN             = seller.PAN;
     PinCode         = seller.PinCode;
     SellerName      = seller.SellerName;
     StateID         = seller.StateID;
 }