public MessageCodeResponse PopupRead(Guid managerId, int recordId) { InformationPopupMgr.Delete(managerId, recordId); var response = ResponseHelper.CreateSuccess <MessageCodeResponse>(); return(response); }
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); }