Esempio n. 1
0
        public IHttpActionResult DepositAnnouncement([FromBody] DepositAnnouncementRequest req)
        {
            req = req ?? new DepositAnnouncementRequest();

            var response = depositBusiness.DepositAnnouncement(req);

            return(Ok(response));
        }
        public DepositAnnouncementResponse DepositAnnouncement(DepositAnnouncementRequest depositAnnouncementRequest)
        {
            var agent    = AuthIntegration.GetAgent();
            var response = _agentConnect.DepositAnnouncement(agent, depositAnnouncementRequest);

            CheckFlagsForDataChange(response.Payload?.Flags, agent);
            return(response);
        }
Esempio n. 3
0
 public virtual async Task <DepositAnnouncementResponse> DepositAnnouncementAsync(Agent agent, DepositAnnouncementRequest depositAnnouncementRequest)
 {
     return(await AgentConnect.DepositAnnouncementAsync(agent, depositAnnouncementRequest));
 }
Esempio n. 4
0
 public virtual DepositAnnouncementResponse DepositAnnouncement(Agent agent, DepositAnnouncementRequest depositAnnouncementRequest)
 {
     return(AgentConnect.DepositAnnouncement(agent, depositAnnouncementRequest));
 }
Esempio n. 5
0
        public AcApiResponse <DepositAnnouncementResponse, ApiData> DepositAnnouncement(DepositAnnouncementRequest req)
        {
            var resp = agentConnectIntegration.DepositAnnouncement(req);

            var apiResp = new AcApiResponse <DepositAnnouncementResponse, ApiData>
            {
                BusinessMetadata = MapperHelper.SetResponseProperties(resp.Payload?.Flags, DataSource.AgentConnect),
                ResponseData     = resp
            };

            return(apiResp);
        }