Ejemplo n.º 1
0
        public string Refresh(int houseid)
        {
            ObjectParameter state  = new ObjectParameter("state", typeof(int));
            ObjectParameter msg    = new ObjectParameter("msg", typeof(string));
            int             userid = User.userid;

            using (shhouseEntities ent = new shhouseEntities())
            {
                //try
                //{
                ent.House_Rent_Refresh_GR2018(userid, houseid, state, msg);

                return(JsonConvert.SerializeObject(new repmsg
                {
                    state = (int)state.Value,
                    msg = (string)msg.Value
                }));
                //}
                //catch (Exception e)
                //{
                //    return JsonConvert.SerializeObject(new repmsg
                //    {
                //        state = 0,
                //        msg = "提交失败,请稍后再试"
                //    });
                //}
            }
        }