Renvoit du rôle au frontend avec Get Login (UPDATE-DATABASE)

This commit is contained in:
MarcEricMartel
2022-11-01 10:33:08 -07:00
parent 5112762ac9
commit cd37fd2c15
16 changed files with 761 additions and 125 deletions

View File

@@ -1,4 +1,4 @@
using static GrossesMitainesAPI.Models.Product;
using static GrossesMitainesAPI.Models.ProductModel;
using System.ComponentModel.DataAnnotations;
namespace GrossesMitainesAPI.Models;
@@ -13,7 +13,7 @@ public class ProductViewModel {
public States Status { get; set; } = States.Available;
public string? ImageName { get; set; }
public ProductViewModel(Product prod) {
public ProductViewModel(ProductModel prod) {
this.Id = prod.Id;
this.Title = prod.Title;
this.Category = prod.Category;