public async Task <SchoolUser> Update(SchoolUser entity) { _oefenplatformContext.Entry(entity).State = EntityState.Modified; try { await _oefenplatformContext.SaveChangesAsync(); } catch { return(null); } return(entity); }
public async Task <T> Update(T entity) { _oefenplatformContext.Entry(entity).State = EntityState.Modified; try { await _oefenplatformContext.SaveChangesAsync(); } catch (Exception ex) { Debug.WriteLine(ex.Message); } return(entity); }