public async Task <ActionResult> Delete(Guid id) { var ckr = new MongoRepository <CryptoKey>(); await ckr.DeleteById(id); return(RedirectToAction(nameof(Index))); }