public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture) { ElevVM elev = value as ElevVM; object[] result = new object[4] { elev.ElevId, elev.Nume, elev.NumeUtilizator, elev.Parola }; return(result); }
public void ModificareElev(object obj) { ElevVM elev = obj as ElevVM; if (elev != null) { context.ModifyStudent(elev.ElevId, elev.Nume); context.SaveChanges(); } }
public void StergereElev(object obj) { ElevVM elev = obj as ElevVM; if (elev != null) { context.DeleteStudent(elev.ElevId); context.SaveChanges(); adminContext.ElevList = AllElevs(); } }
public ElevActions(ElevVM elevContext) { this.elevContext = elevContext; }