public async Task <IActionResult> CreateWeatherAsync([FromBody] Weather weather) { if (!ModelState.IsValid) { return(BadRequest()); } var result = await _weatherService.CreateWeatherAsync(_mapper.Map <BLL.Models.Weather>(weather)); return(Created($"{result.Id}", _mapper.Map <Weather>(result))); }