コード例 #1
0
        public override async Task Init()
        {
            Lastname  = _source.Lastname;
            Firstname = _source.Firstname;
            Email     = _source.Email;
            Telephone = _source.Telephone;

            Companies = new ObservableCollection <Item>(await Task.Run(() => _companyQueries.GetAll().Select(a => new Item()
            {
                Id = a.CompanyId, Label = a.Name
            })));
            SelectedCompanie = Companies.FirstOrDefault(a => a.Id == _source.GetSocieteId());
        }
コード例 #2
0
 public CoreResult <IQueryable <Company> > GetCompanyList()
 {
     return(_companyQueries.GetAll());
 }
コード例 #3
0
 protected override async Task <IReadOnlyList <EditableCompany> > LoadAsync()
 {
     return(await Task.Run(() => _companyQueries.GetAll().Select(a => new EditableCompany(a)).ToList()));
 }