private void EditAccount() { EmployeeManagementDBContext context = new EmployeeManagementDBContext(); PdbAccount eve = new Accounts(context) { }.GetAccountwithID(_id); eve = GetInfomationforEdit(eve); try { new Accounts(context) { }.Update(eve); new EmployeeManagement_Service.Service.Basic.Notification.SuccessfulNotification() { }.UpdateSuccessful(); } catch { new EmployeeManagement_Service.Service.Basic.Notification.ErrorNotification() { }.ErrorWhileEdit(); throw new Exception(); } finally { GetAllData(); } }
public UserLogins() { Error = new ErrorNotification(); Successful = new SuccessfulNotification(); EmployeeManagementDBContext context = new EmployeeManagementDBContext(); AccountService = new Accounts(context); }
private void EventForm_Load(object sender, EventArgs e) { _context = new EmployeeManagementDBContext(); try { GetAllData(); } catch { new EmployeeManagement_Service.Service.Basic.Notification.ErrorNotification() { }.ErrorWhileRefreshData(); } }
public Salary(EmployeeManagementDBContext context) { this._context = context; }
public EmployeeDAO(EmployeeManagementDBContext dbContext) { this.dbContext = dbContext; }
public BaseRepository(EmployeeManagementDBContext context) { this._context = context; this.dbSet = context.Set <TEntity>(); }
public Supplies(EmployeeManagementDBContext context) { this._context = context; }
public FeedBacks(EmployeeManagementDBContext context) { this._context = context; }
public Staffs(EmployeeManagementDBContext context) { this._context = context; }
public Contracts(EmployeeManagementDBContext context) { this._context = context; }
public EducationLevels(EmployeeManagementDBContext context) { this._context = context; }
public Accounts(EmployeeManagementDBContext context) { this._context = context; }
public EventForm(EmployeeManagementDBContext context) { this._context = context; }