public IActionResult GetAllStockPricesOfAllCompaniesBetweenDates(DateTime fromDate, DateTime toDate) { if (fromDate == null || toDate == null) { return(BadRequest("inputs required")); } var Data = stockPriceService.GetAllStockPricesOfAllCompaniesBetweenDates(fromDate, toDate); return(Ok(Data)); }