Exemple #1
0
 public static GetWarrantyInfoResponse ToResponseDto(this Domain.Warranty warranty)
 {
     return(new GetWarrantyInfoResponse
     {
         Comment = warranty.Comment,
         Status = warranty.Status,
         WarrantyDate = warranty.WarrantyDate
     });
 }
Exemple #2
0
        public async Task Add(Domain.Warranty warranty)
        {
            await _warrantyDbContext.Warranties.AddAsync(warranty);

            await _warrantyDbContext.SaveChangesAsync();
        }