Beispiel #1
0
        public MessageCodeResponse PopupRead(Guid managerId, int recordId)
        {
            InformationPopupMgr.Delete(managerId, recordId);
            var response = ResponseHelper.CreateSuccess <MessageCodeResponse>();

            return(response);
        }
Beispiel #2
0
        public InformationPopupResponse GetPopup(Guid managerId, int recordId)
        {
            var entity = InformationPopupMgr.GetById(recordId);

            if (entity == null || entity.ManagerId != managerId)
            {
                return(ResponseHelper.InvalidParameter <InformationPopupResponse>());
            }
            InformationPopupMgr.Delete(managerId, recordId);
            var response = ResponseHelper.CreateSuccess <InformationPopupResponse>();

            response.Data = entity;
            return(response);
        }