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