Esempio n. 1
0
        public JsonResult EditENYd(RoomRegGuestInfoEN model)
        {
            var apiResult = new APIResult();
            int code      = 0;

            try
            {
                RoomRegGuestInfoENBll.AddOrUpdateYd(model, UserContext.CurrentUser.HotelId, ref code);
            }
            catch (Exception ex)
            {
                apiResult.Ret = -1;
                apiResult.Msg = ex.Message;
                if (!(ex is OperationExceptionFacade))
                {
                    LogFactory.GetLogger().Log(LogLevel.Error, ex);
                }
            }
            if (code == -100)
            {
                apiResult.Ret = code;
            }
            return(Json(apiResult));
        }