public async Task <Guid> AddAsync(TemperatureAddDto temperature) { var newTemperature = _mapper.Map <ForecastTemperature>(temperature); newTemperature.Id = Guid.NewGuid(); await _context.AddAsync(newTemperature); return(newTemperature.Id); }
public async Task <Guid> AddAsync(WeekAddDto week) { var newWeek = _mapper.Map <ForecastWeek>(week); newWeek.Id = Guid.NewGuid(); await _context.AddAsync(newWeek); return(newWeek.Id); }