public IActionResult DeleteStockPrice(int id) { var result = stockPriceService.DeleteStockPrice(id); if (!result) { return(BadRequest("Some error occured")); } else { return(Ok("Stock price deleted")); } }
public IActionResult DeleteStockPrice(string name) { stockService.DeleteStockPrice(name); return(Ok("Record Deleted")); }