public MessageCodeResponse PopupRead(Guid managerId, int recordId) { InformationPopupMgr.Delete(managerId, recordId); var response = ResponseHelper.CreateSuccess <MessageCodeResponse>(); return(response); }
static void doSendPopup(InformationPopupEntity entity) { try { InformationPopupMgr.Insert(entity); string content = string.Format("RF,{0}", entity.Idx); //ChatHelper.doSendPop(entity.ManagerId, EnumPopType.AddFriend, content); } catch (Exception ex) { SystemlogMgr.Error("doSendPopup", ex); } }
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); }