public IActionResult ImportAllByDates(string dates) { var parsedDates = dates.Split(',').Select(DateTime.Parse).ToList(); if (parsedDates.Count > 0) { _dataLoader.ImportAllByDates(parsedDates); return(Ok()); } return(BadRequest()); }