Ejemplo n.º 1
0
        public string RegisterHospital(string title, string contact, string idcard, string mobile, string address, string telphone, string deptname)
        {
            string jsonRegister = string.Empty;

            try
            {
                HospitalRequest          hr    = new HospitalRequest();
                var                      token = Session["token"] == null ? "XXXXXXX" : Session["token"].ToString();
                HospitalRegisterResponse registerHospitalResponse = new HospitalRegisterResponse();
                registerHospitalResponse = hr.Register(token, title, contact, idcard, mobile, address, telphone, deptname);
                jsonRegister             = JsonHelper.SerializeObject(registerHospitalResponse);
            }
            catch (Exception ex)
            {
                AppLog.Instance.Write("RegisterHospital", AppLog.LogMessageType.Error, ex);
            }
            return(jsonRegister);
        }