コード例 #1
0
 public async Task SelectCompanyElement(int id)
 {
     TempService.SetId(id);
     SelectedId      = id;
     SelectedCompany = TempService.CompanyModels.Where(p => p.Id == SelectedId).FirstOrDefault();
     await AddLog(id);
 }
コード例 #2
0
        public async void SetNotQualify()
        {
            if (SelectedId != 0)
            {
                await CompanyService.SetNotQualified(SelectedId);

                var company = await CompanyService.GetCompany(SelectedId);

                QualifyCompanyModel notQualified = new QualifyCompanyModel {
                    IsQualify = false, CompanyTradingName = company.TradingName
                };
                await AddLog(qualifyCompany : notQualified);
            }
            await TempService.UpdateCompanies();

            TempService.SetId(0);
            Pause();
        }