public async Task <IActionResult> AddMaterial([FromBody] MaterialAddForm json) { var photoName = await _photoService.SafePhoto(json.Photo); var id = _furnitureService.AddMaterial(photoName, json); var response = _furnitureService.GetSingle <Material, MaterialResponse>(id); response.Photo = photoName; return(StatusCode(201, response)); }