public ActionResult Delete(int id)
 {
     try
     {
         CardType card = new CardType();
         if (card.deleteCardType(id))
         {
             return(Json(new { Success = true, Message = "Card Type Deleted Succesfully" }));
         }
         else
         {
             return(Json(new { Success = false, Message = "Card Type Deletion failed" }));
         }
     }
     catch
     {
         return(View());
     }
 }