Ejemplo n.º 1
0
        public string EditHospital(string id, string title, string contact, string mobile, string address, string telphone, string deptname)
        {
            string jsonEditHospital = string.Empty;

            try
            {
                HospitalRequest hr    = new HospitalRequest();
                var             token = Session["token"] == null ? "XXXXXXX" : Session["token"].ToString();

                HospitalEntity he = new HospitalEntity
                {
                    title    = title,
                    contact  = contact,
                    mobile   = mobile,
                    address  = address,
                    telphone = telphone,
                    deptname = deptname
                };

                jsonEditHospital = hr.Edit(token, id, he);
            }
            catch (Exception ex)
            {
                AppLog.Instance.Write("EditHospital", AppLog.LogMessageType.Error, ex);
            }
            return(jsonEditHospital);
        }