This commit is contained in:
Naumann 2020-06-04 09:35:10 +02:00
commit b1f62f89e7
2 changed files with 9 additions and 9 deletions

View file

@ -13,10 +13,10 @@ namespace BuecherwurmAPI.Models
public long Year {get; set;} public long Year {get; set;}
[Key, Required] [Key, Required]
public long ProductId { get; set; } public long ProductId { get; set; }
public CategoryEnum Category { get; set; } public long Category { get; set; }
public string ImageLink { get; set; } public string ImageLink { get; set; }
public long LendTime {get; set;} public long LendTime {get; set;}
public LendTypeEnum LendType {get; set;} public long LendType {get; set;}
} }
public class BookPost public class BookPost
@ -28,10 +28,10 @@ namespace BuecherwurmAPI.Models
public string Language {get; set;} public string Language {get; set;}
public long Pages {get; set;} public long Pages {get; set;}
public long Year {get; set;} public long Year {get; set;}
public CategoryEnum Category { get; set; } public long Category { get; set; }
public string ImageLink { get; set; } public string ImageLink { get; set; }
public long LendTime {get; set;} public long LendTime {get; set;}
public LendTypeEnum LendType {get; set;} public long LendType {get; set;}
} }
} }

View file

@ -34,7 +34,7 @@ namespace BuecherwurmAPI.Models
{ {
books.Add(new Book books.Add(new Book
{ {
Name = (string) dataReader["Books"], Name = (string) dataReader["Name"],
Author = (string) dataReader["Author"], Author = (string) dataReader["Author"],
Country = (string) dataReader["Country"], Country = (string) dataReader["Country"],
Link = (string) dataReader["Link"], Link = (string) dataReader["Link"],
@ -42,10 +42,10 @@ namespace BuecherwurmAPI.Models
Pages = (long) dataReader["Pages"], Pages = (long) dataReader["Pages"],
Year = (long) dataReader["Year"], Year = (long) dataReader["Year"],
ProductId = (long) dataReader["ProductId"], ProductId = (long) dataReader["ProductId"],
Category = (CategoryEnum) dataReader["Category"], Category = (long) dataReader["Category"],
ImageLink = (string) dataReader["ImageLink"], ImageLink = (string) dataReader["ImageLink"],
LendTime = (long) dataReader["LendTime"], LendTime = (long) dataReader["LendTime"],
LendType = (LendTypeEnum) dataReader["LendType"] LendType = (long) dataReader["LendType"]
}); });
} }
} }
@ -70,10 +70,10 @@ namespace BuecherwurmAPI.Models
Pages = (long) dataReader["Pages"], Pages = (long) dataReader["Pages"],
Year = (long) dataReader["Year"], Year = (long) dataReader["Year"],
ProductId = (long) dataReader["ProductId"], ProductId = (long) dataReader["ProductId"],
Category = (CategoryEnum) dataReader["Category"], Category = (long) dataReader["Category"],
ImageLink = (string) dataReader["ImageLink"], ImageLink = (string) dataReader["ImageLink"],
LendTime = (long) dataReader["LendTime"], LendTime = (long) dataReader["LendTime"],
LendType = (LendTypeEnum) dataReader["LendType"] LendType = (long) dataReader["LendType"]
}; };
return book; return book;
} }