Beispiel #1
0
        public void Remove(PortfolioRemoveModel model)
        {
            var crypto = cryptoList.SingleOrDefault(x => x.Name == model.Name && x.DateTimeBought == model.DateTimeBought);

            if (crypto != null)
            {
                cryptoList.Remove(crypto);
            }
        }
Beispiel #2
0
 public IActionResult Remove(PortfolioRemoveModel model)
 {
     cryptoDataModel.Remove(model);
     return(RedirectToAction(nameof(Index)));
 }