public IActionResult Create([FromForm] PlatformTypeViewModel platform) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var platformId = Guid.NewGuid(); var platformModel = new Platform { Name = platform.Name, Id = platformId }; _platformService.Create(platformModel); _platformService.AddPlatformTranslate(platform.NameRu, "ru", platformId); return(StatusCode(StatusCodes.Status201Created)); }