public async Task <IActionResult> CreatePoster(PosterForRegisterDto posterForRegisterDto) { posterForRegisterDto.Title = posterForRegisterDto.Title; var posterToCreate = new Poster { Title = posterForRegisterDto.Title, Description = posterForRegisterDto.Description, Size = posterForRegisterDto.Size, Price = posterForRegisterDto.Price }; var createdPoster = await _repo.CreatePoster(posterToCreate); // _context.Add(posterToCreate); // await _context.SaveChangesAsync(); return(StatusCode(201)); }