public IActionResult DeletePrice(int id) { var Price = _context.Price.Single(x => x.Id == id); _context.Remove(Price); _context.SaveChanges(); return(StatusCode(202, Price)); }
public IActionResult DeleteStock([FromBody] Stock stock) { _context.Remove(stock); _context.SaveChanges(); return(StatusCode(202, stock)); }