コード例 #1
0
        public IActionResult DeleteStockPrice(int id)
        {
            var result = stockPriceService.DeleteStockPrice(id);

            if (!result)
            {
                return(BadRequest("Some error occured"));
            }
            else
            {
                return(Ok("Stock price deleted"));
            }
        }
コード例 #2
0
 public IActionResult DeleteStockPrice(string name)
 {
     stockService.DeleteStockPrice(name);
     return(Ok("Record Deleted"));
 }