Quick cleanup for proper compile
This commit is contained in:
@@ -12,7 +12,7 @@ Server:
|
|||||||
Dont follow theme of website
|
Dont follow theme of website
|
||||||
|
|
||||||
ProductController:
|
ProductController:
|
||||||
UpdateProduct doesn't update the images in the new SQL table anymore
|
GetProduct, GetAllProducts, UpdateProduct dont update the images in the new SQL table anymore
|
||||||
|
|
||||||
Client:
|
Client:
|
||||||
Program
|
Program
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
using MySql.Data.MySqlClient;
|
using MySql.Data.MySqlClient;
|
||||||
using System.Data;
|
using System.Data;
|
||||||
using System.Data.Common;
|
using System.Data.Common;
|
||||||
using System.Net.Http.Formatting;
|
|
||||||
|
|
||||||
namespace MistoxWebsite.Server.Services.DatabaseService {
|
namespace MistoxWebsite.Server.Services.DatabaseService {
|
||||||
public partial class DatabaseService {
|
public partial class DatabaseService {
|
||||||
@@ -27,18 +26,14 @@ namespace MistoxWebsite.Server.Services.DatabaseService {
|
|||||||
int _id = reader.GetInt32("ID");
|
int _id = reader.GetInt32("ID");
|
||||||
string _name = reader.GetString("Name");
|
string _name = reader.GetString("Name");
|
||||||
string _description = reader.GetString("Description");
|
string _description = reader.GetString("Description");
|
||||||
string _images = reader.GetString("Images");
|
|
||||||
int _cost = reader.GetInt32("Cost");
|
int _cost = reader.GetInt32("Cost");
|
||||||
string _url = reader.GetString("URL");
|
string _url = reader.GetString("URL");
|
||||||
|
|
||||||
string[] _imageList = _images.Split('|', StringSplitOptions.RemoveEmptyEntries);
|
|
||||||
|
|
||||||
items = new Product() {
|
items = new Product() {
|
||||||
ID = _id,
|
ID = _id,
|
||||||
Name = _name,
|
Name = _name,
|
||||||
Description = _description,
|
Description = _description,
|
||||||
Cost = _cost,
|
Cost = _cost,
|
||||||
Images = _imageList,
|
|
||||||
URL = _url
|
URL = _url
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -60,18 +55,14 @@ namespace MistoxWebsite.Server.Services.DatabaseService {
|
|||||||
int _id = reader.GetInt32("ID");
|
int _id = reader.GetInt32("ID");
|
||||||
string _name = reader.GetString("Name");
|
string _name = reader.GetString("Name");
|
||||||
string _description = reader.GetString("Description");
|
string _description = reader.GetString("Description");
|
||||||
string _images = reader.GetString("Images");
|
|
||||||
int _cost = reader.GetInt32("Cost");
|
int _cost = reader.GetInt32("Cost");
|
||||||
string _url = reader.GetString("URL");
|
string _url = reader.GetString("URL");
|
||||||
|
|
||||||
string[] _imageList = _images.Split('|', StringSplitOptions.RemoveEmptyEntries);
|
|
||||||
|
|
||||||
items.Add(new Product() {
|
items.Add(new Product() {
|
||||||
ID = _id,
|
ID = _id,
|
||||||
Name = _name,
|
Name = _name,
|
||||||
Description = _description,
|
Description = _description,
|
||||||
Cost = _cost,
|
Cost = _cost,
|
||||||
Images = _imageList,
|
|
||||||
URL = _url
|
URL = _url
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user