public static VinylDTO Map(IVinyl vinyl) { VinylDTO vinylDTO = new VinylDTO { ID = vinyl.ID, Title = vinyl.Title, Band = vinyl.Band, Price = vinyl.Price, InStock = vinyl.InStock }; return(vinylDTO); }
public async Task <bool> AddVinyl(VinylDTO vinyl) { IVinyl vinylObj = DTOMapper.Map(vinyl); return(await Task.FromResult(vinylDataBase.AddStock(vinylObj.ID, vinylObj.InStock))); }
public Order(int ID, IClient client, IVinyl vinyl) { this.ID = ID; this.client = client; this.vinyl = vinyl; }