Esempio n. 1
0
        public JsonResult ChangeBlockStatus()
        {
            string currentuser     = Session["CurrentUserID"].ToString();
            string currentusername = Session["DomainUserName"].ToString();

            string mobileno  = Request["MobileNo"];
            string newstatus = Request["NewStatus"];
            string reason    = Request["Reason"];

            Params param = new Params()
            {
                Parameter = new Dictionary <string, string>()
            };

            param.RequestTransType = "ChangeSMSBankStatusByMobileNo";
            param.Parameter.Add("mobileNo", mobileno);
            param.Parameter.Add("newStatus", newstatus);
            param.Parameter.Add("agentId", currentusername);
            param.Parameter.Add("reason", reason);

            string start = DateTime.Now.ToString();

            ChangeStatusResult    result    = StatusUpdate.UserSMSBanking(param);
            ChangeStatusUpdatedBy updatedby = new ChangeStatusUpdatedBy
            {
                ID   = currentuser,
                Name = currentusername
            };

            result.UpdatedBy = updatedby;

            string stop = DateTime.Now.ToString();

            ChangeStatusLog.Write(param, result, start, stop);

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