public JsonResult EnableMerchant(string merchantid, string status) { var data = new CommonDbResponse(); MerchantCommon merchantCommon = new MerchantCommon(); bool valid = true; //string userId = userid.DecryptParameter(); string agentId = merchantid.DecryptParameter(); if (String.IsNullOrEmpty(agentId)) { data = new CommonDbResponse { Code = ResponseCode.Failed, Message = "Invalid User." }; valid = false; } if (valid) { merchantCommon.MerchantStatus = "y"; merchantCommon.MerchantID = agentId; //merchantCommon.UserID = userId; merchantCommon.ActionUser = Session["UserName"].ToString(); data = _merchant.Disable_EnableMerchant(merchantCommon); //if (data.ErrorCode == 0) //{ // data.Message = "Successfully Changed User"; //} } data.SetMessageInTempData(this); return(Json(data)); }