public ActionResult AddEditAffiliate(AddEditAffiliateViewModel viewModel)
        {
            if (ModelState.IsValid)
            {
                CRCDataAccess.SaveAffiliate(
                    viewModel.AffiliateId,
                    viewModel.AffiliateName,
                    viewModel.AffiliateCode,
                    viewModel.EnabledInd ? (DateTime?)null : DateTime.UtcNow,
                    viewModel.EnabledInd ? (long?)null : CRCUser.UserId,
                    CRCUser.UserId);

                return(Json(true));
            }
            else
            {
                return(PartialView(viewModel));
            }
        }