private async void CheckLicense() { IsBusy = true; BusyConyent = "Checking License"; await Task.Factory.StartNew(() => { using (var db = new Dbesm()) { var company = db.CompanyInformations.Find(1); } MenuCommandExecute(new InitialLicense().Check() ? "User Login" : "Activation"); // MenuCommandExecute(true ? "User Login" : "Activation"); IsBusy = false; BusyConyent = "Loading..."; }); }
public CompanyInfoRepository(Dbesm dbesm) { _dbesm = dbesm; _dbSet = _dbesm.Set<CompanyInformation>(); }