public IActionResult CreateCryprocurrencyHistory(CryptocurrencyHistory cryptocurrencyHistory) { if (_cryptocurrencyHistoryService.CreateCryptocurrencyHistory(cryptocurrencyHistory)) { return(Created(string.Empty, cryptocurrencyHistory)); } return(BadRequest()); }
public bool CreateCryptocurrencyHistory(CryptocurrencyHistory cryptocurrencyHistory) { return(_cryptocurrencyHistoryRepository.Create(cryptocurrencyHistory)); }