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());
        }
Ejemplo n.º 2
0
 public CoreResult <IQueryable <Company> > GetCompanyList()
 {
     return(_companyQueries.GetAll());
 }
Ejemplo n.º 3
0
 protected override async Task <IReadOnlyList <EditableCompany> > LoadAsync()
 {
     return(await Task.Run(() => _companyQueries.GetAll().Select(a => new EditableCompany(a)).ToList()));
 }