public JsonResult EditCommissionRateList(string Id, string Description, string MaxPercent, string oper, string longDescription)
        {
            long    ID;
            decimal MaxPerc;
            bool    good = false;

            if (oper == "del")
            {
                if (!Int64.TryParse(Id, out ID))
                {
                    return(JSON(false));
                }
                good = GeneralRepository.DeleteCommissionRate(ID);
                if (!good)
                {
                    Response.StatusCode = 500;
                }
            }
            else
            {
                if (oper == "add")
                {
                    Id = "0";
                }
                if (!Int64.TryParse(Id, out ID))
                {
                    return(JSON(false));
                }
                if (!Decimal.TryParse(MaxPercent, out MaxPerc))
                {
                    return(JSON(false));
                }
                good = GeneralRepository.AddEditCommissionRate(ID, Description, MaxPerc, oper == "add", longDescription);
                if (!good)
                {
                    Response.StatusCode = 500;
                }
            }
            return(JSON(true));
        }