private LienWaiverModel GetApiInputModel()
        {
            var model = new LienWaiverModel
            {
                CustomerName        = _model.CustomerName,
                EmailAddress        = _model.Email,
                PhoneNumber         = _model.Phone,
                ProjectName         = _model.ProjectName,
                ProjectAccountNo    = _model.ProjectAccountNumber,
                ProjectAddress      = _model.ProjectAddress,
                ProjectCity         = _model.ProjectCity,
                ProjectState        = _model.ProjectState?.Key,
                ProjectZip          = _model.ProjectZip,
                DollarAmount        = _model.DollarAmountStr?.ToDouble(),
                Invoices            = _model.InvoiceNumberList.Select(p => p.Value).ToList(),
                MailedWaiverAddress = _model.MailingAddress,
                MailedWaiverCity    = _model.MailingCity,
                MailedWaiverState   = _model.MailingState?.Key,
                MailedWaiverZip     = _model.MailingZip,
                SpecialInstrutions  = _model.SpecialInstructions,
                WaiverType          = _selectedWaiverType
            };



            return(model);
        }
Beispiel #2
0
 public async Task <ApiResponseOfString> AddLienWaiver(LienWaiverModel model)
 {
     return(await AXClient.Instance.AddLienWaiverAsync(model)
            .ConfigureAwait(false));
 }