public string AddSize(ProductSizeDTO productSizeDTO) { ProductSize size = new ProductSize(); size.Value = productSizeDTO.Value; _context.productSize.Add(size); _context.SaveChanges(); return("Color Added Succesfully"); }
public Task UpdateAsync(ProductSizeDTO model) { throw new NotImplementedException(); }
public IActionResult AddColor(ProductSizeDTO prdReq) { return(Ok(_prd.AddSize(prdReq))); }