public ActionResult UnregisterCard(int ID) { UnregisterCardModel CardModel = new UnregisterCardModel(); GiftCardBalance tBalance = new GiftCardBalance(); try { String CardHolderName = this.HttpContext.User.Identity.Name; ICardHolderService CardHService = new CardHolderService(); tBalance = CardHService.GetCardBalance(CardHolderName, ID); CardModel.ID = tBalance.ID.ToString(); CardModel.CardNumber = tBalance.CardNumber; CardModel.Balance = tBalance.GiftBalance; ViewData["Message"] = " "; } catch (Exception Ex) { ViewData["Message"] = "Failure while trying to read balance " + Common.StandardExceptionErrorMessage(Ex); } return(View(CardModel)); }