mirror of
https://github.com/D4M13N-D3V/comissions-app-core-api.git
synced 2025-03-14 10:04:55 +00:00
fix
This commit is contained in:
parent
16d4303ccc
commit
3d8d789192
@ -41,6 +41,7 @@ public class ApplicationDbContext:DbContext
|
||||
#region DB Sets
|
||||
|
||||
public DbSet<User> Users { get; set; } = null!;
|
||||
public DbSet<SellerProfilePageSettings> SellerProfilePageSettings { get; set; }= null!;
|
||||
public DbSet<UserSellerProfile> UserSellerProfiles { get; set; }= null!;
|
||||
public DbSet<SellerProfileRequest> SellerProfileRequests { get; set; }= null!;
|
||||
public DbSet<SellerProfilePortfolioPiece> SellerProfilePortfolioPieces { get; set; }= null!;
|
||||
|
@ -84,7 +84,12 @@ public class AdminSellerRequestsController : Controller
|
||||
SocialMediaLink3 = "",
|
||||
SocialMediaLink4 = "",
|
||||
Name = "Default Shop",
|
||||
SellerProfilePageSettings = new SellerProfilePageSettings(){
|
||||
};
|
||||
var dbProfile = _dbContext.UserSellerProfiles.Add(newSellerProfile).Entity;
|
||||
await _dbContext.SaveChangesAsync();
|
||||
var newSettings = new SellerProfilePageSettings()
|
||||
{
|
||||
SellerProfileId = dbProfile.Id,
|
||||
BackgroundColor = "rgb(126, 115, 115)",
|
||||
HeaderColor = "rgb(194, 187, 187)",
|
||||
HeaderTextSize = 5,
|
||||
@ -118,9 +123,10 @@ public class AdminSellerRequestsController : Controller
|
||||
RequestButtonBGColor = "rgb(101, 97, 97)",
|
||||
RequestButtonTextColor = "rgb(194, 187, 187)",
|
||||
RequestButtonHoverBGColor = "rgb(98, 98, 98)"
|
||||
}
|
||||
};
|
||||
_dbContext.UserSellerProfiles.Add(newSellerProfile);
|
||||
var dbSettings = _dbContext.SellerProfilePageSettings.Add(newSettings).Entity;
|
||||
await _dbContext.SaveChangesAsync();
|
||||
|
||||
request = _dbContext.SellerProfileRequests.Update(request).Entity;
|
||||
await _dbContext.SaveChangesAsync();
|
||||
var result = request.ToModel();
|
||||
|
Loading…
x
Reference in New Issue
Block a user