Exemplo n.º 1
0
        protected async Task Search()
        {
            try
            {
                CompanyModel.FilteredCompanies = await CompanyListService.Search(CompanyModel);
            }
            catch (Exception ex)
            {
                CompanyModel.IsError = true;

                CompanyModel.ErrorMessage = ex.Message;
            }
        }
Exemplo n.º 2
0
        protected override async Task OnInitializedAsync()
        {
            try
            {
                CompanyModel = await CompanyListService.GetCompanies();
            }
            catch (Exception ex)
            {
                CompanyModel.IsError = true;

                CompanyModel.ErrorMessage = ex.Message;
            }
        }