Esempio n. 1
0
        public ActionResult Delete(long id, string type)
        {
            var apiResult = new APIResult();

            try
            {
                if (type == "cn")
                {
                    RoomRegGuestInfoCNBll.DeleteById(id);
                }
                else
                {
                    RoomRegGuestInfoENBll.DeleteById(id);
                }
            }
            catch (Exception ex)
            {
                apiResult.Ret = -1;
                apiResult.Msg = ex.Message;
                if (!(ex is OperationExceptionFacade))
                {
                    LogFactory.GetLogger().Log(LogLevel.Error, ex);
                }
            }
            return(Json(apiResult));
        }