Impliment file upload for company Logo
This commit is contained in:
@@ -2,6 +2,7 @@ using BoredCareers.Entities;
|
||||
using MySql.Data.MySqlClient;
|
||||
using System.Data;
|
||||
using System.Data.Common;
|
||||
using System.Text;
|
||||
|
||||
namespace BoredCareers.Services.DatabaseService {
|
||||
public partial class DatabaseService {
|
||||
@@ -30,7 +31,7 @@ namespace BoredCareers.Services.DatabaseService {
|
||||
string _email = reader.GetString("Email");
|
||||
bool _emailVerified = reader.GetBoolean("EmailVerified");
|
||||
string _websiteurl = reader.GetString("WebsiteURL");
|
||||
string _logourl = reader.GetString( "LogoURL" );
|
||||
string _logo = Encoding.UTF8.GetString((byte[])reader["Logo"]);
|
||||
string _phone = reader.GetString( "Phone" );
|
||||
string _postalcode = reader.GetString( "PostalCode" );
|
||||
string _country = reader.GetString( "Country" );
|
||||
@@ -47,7 +48,7 @@ namespace BoredCareers.Services.DatabaseService {
|
||||
Email = _email,
|
||||
EmailVerified = _emailVerified,
|
||||
WebsiteURL = _websiteurl,
|
||||
LogoURL = _logourl,
|
||||
Logo = _logo,
|
||||
Phone = _phone,
|
||||
PostalCode = _postalcode,
|
||||
Country = _country,
|
||||
@@ -86,7 +87,7 @@ namespace BoredCareers.Services.DatabaseService {
|
||||
string _email = reader.GetString("Email");
|
||||
bool _emailVerified = reader.GetBoolean("EmailVerified");
|
||||
string _websiteurl = reader.GetString("WebsiteURL");
|
||||
string _logourl = reader.GetString( "LogoURL" );
|
||||
string _logo = Encoding.UTF8.GetString((byte[])reader["Logo"]);
|
||||
string _phone = reader.GetString( "Phone" );
|
||||
string _postalcode = reader.GetString( "PostalCode" );
|
||||
string _country = reader.GetString( "Country" );
|
||||
@@ -103,7 +104,7 @@ namespace BoredCareers.Services.DatabaseService {
|
||||
Email = _email,
|
||||
EmailVerified = _emailVerified,
|
||||
WebsiteURL = _websiteurl,
|
||||
LogoURL = _logourl,
|
||||
Logo = _logo,
|
||||
Phone = _phone,
|
||||
PostalCode = _postalcode,
|
||||
Country = _country,
|
||||
@@ -142,7 +143,7 @@ namespace BoredCareers.Services.DatabaseService {
|
||||
string _email = reader.GetString("Email");
|
||||
bool _emailVerified = reader.GetBoolean("EmailVerified");
|
||||
string _websiteurl = reader.GetString("WebsiteURL");
|
||||
string _logourl = reader.GetString( "LogoURL" );
|
||||
string _logo = Encoding.UTF8.GetString((byte[])reader["Logo"]);
|
||||
string _phone = reader.GetString( "Phone" );
|
||||
string _postalcode = reader.GetString( "PostalCode" );
|
||||
string _country = reader.GetString( "Country" );
|
||||
@@ -159,7 +160,7 @@ namespace BoredCareers.Services.DatabaseService {
|
||||
Email = _email,
|
||||
EmailVerified = _emailVerified,
|
||||
WebsiteURL = _websiteurl,
|
||||
LogoURL = _logourl,
|
||||
Logo = _logo,
|
||||
Phone = _phone,
|
||||
PostalCode = _postalcode,
|
||||
Country = _country,
|
||||
|
||||
Reference in New Issue
Block a user