public JsonResult ExtendSelectedCard(ActiveCardCustomViewModel obj)
        {
            var isSuccess  = false;
            var host       = Request.Url.Host;
            var fee        = obj.FeeLevel.Replace(".", "").Replace(",", "");
            var dateextend = Convert.ToDateTime(obj.DateExtend).ToString("MM/dd/yyyy");
            var dateactive = Convert.ToDateTime(obj.DateActive);
            var newarr     = "(";

            if (!string.IsNullOrEmpty(obj.arrCardID))
            {
                var arr = obj.arrCardID.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries);

                if (arr.Length > 0)
                {
                    int count = 0;
                    foreach (var _ar in arr)
                    {
                        count++;
                        if (!string.IsNullOrEmpty(_ar))
                        {
                            newarr += "'" + _ar + "'" + (count < arr.Length ? "," : ")");
                        }
                    }
                }
            }

            fee = !string.IsNullOrWhiteSpace(fee) ? fee : "0";

            try
            {
                var list = (List <tblCardExtend>)Session[string.Format("{0}_{1}", SessionConfig.CardActiveParkingSession, host)];
                if (list != null && list.Any())
                {
                    var count       = 0;
                    var cardnumbers = "";

                    foreach (var item in list)
                    {
                        count++;
                        cardnumbers += string.Format("'{0}'{1}", item.CardNumber, list.Count == count ? "" : ",");
                    }

                    isSuccess = _tblCardService.AddCardExpireByListCardNumberTRANSERCO(cardnumbers, int.Parse(fee), dateextend, GetCurrentUser.GetUser().Id, obj.isAllowNegativeDays, newarr);
                }
                else
                {
                    var result1 = new MessageReport();
                    result1.Message   = "Vui lòng chọn thẻ muốn gia hạn";
                    result1.isSuccess = false;

                    return(Json(result1, JsonRequestBehavior.AllowGet));
                }

                if (isSuccess)
                {
                    var result = new MessageReport();
                    result.Message   = "Cập nhật thành công";
                    result.isSuccess = isSuccess;

                    Session[string.Format("{0}_{1}", SessionConfig.CardActiveParkingSession, host)] = new List <tblCardExtend>();

                    return(Json(result, JsonRequestBehavior.AllowGet));
                }
                else
                {
                    var result = new MessageReport();
                    result.Message   = "Không thành công";
                    result.isSuccess = isSuccess;

                    return(Json(result, JsonRequestBehavior.AllowGet));
                }
            }
            catch (Exception ex)
            {
                var result = new MessageReport();
                result.Message   = ex.Message;
                result.isSuccess = false;

                return(Json(result, JsonRequestBehavior.AllowGet));
            }
        }