Добавил ImageUrl
This commit is contained in:
parent
b07e41e9a6
commit
b53f1d6986
@ -9,6 +9,7 @@ public class Film
|
||||
public City City { get; set; }
|
||||
public string Cinema { get; set; }
|
||||
public string FilmName { get; set; }
|
||||
public string ImageURL { get; set; }
|
||||
public string? Genre { get; set; }
|
||||
public string? Time { get; set; }
|
||||
public float Price { get; set; } = 0;
|
||||
|
@ -5,6 +5,7 @@ public class FilmDto
|
||||
public string City { get; set; }
|
||||
public string Cinema { get; set; }
|
||||
public string FilmName { get; set; }
|
||||
public string ImageURL { get; set; }
|
||||
public string? Genre { get; set; }
|
||||
public string? Time { get; set; }
|
||||
public float? Price { get; set; }
|
||||
|
@ -41,6 +41,7 @@ public class PublicDataService : IPublicDataService
|
||||
film.Price = filmDto.Price ?? 0;
|
||||
film.Genre = filmDto.Genre;
|
||||
film.Time = filmDto.Time;
|
||||
film.ImageURL = filmDto.ImageURL;
|
||||
film.City = await _databaseContext.Cities.FirstOrDefaultAsync(x => x.Name == filmDto.City);
|
||||
await _databaseContext.Films.AddAsync(film);
|
||||
}
|
||||
|
@ -1,4 +1,7 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Host=192.168.0.46;Port=5432;Database=backend;Username=prod;Password=q8ne6LHAobv5EX"
|
||||
},
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Information",
|
||||
|
Loading…
x
Reference in New Issue
Block a user