public async Task <IActionResult> Add([FromBody] PieceOfFurnitureAddForm json) { var photosNames = await _photoService.SafePhotos(json.Photos); var id = await _furnitureService.AddFurniture(photosNames, Mapper.Map(json).ToANew <PieceOfFurnitureAddDto>()); return(StatusCode(201, _furnitureService.GetPieceOfFurniture(id))); }