public async Task <string> UpdateEFCoreASync(string FirstName, int id) { UserTestUpdate userTestUpdate = new UserTestUpdate(FirstName, id); await eFCoreASyncRepository.UpdateAsync(userTestUpdate); return("test"); }
public string UpdateEFCoreSync(string FirstName, int id) { UserTestUpdate userTestUpdate = new UserTestUpdate(FirstName, id); eFCoreSyncRepository.Update(userTestUpdate); return("test"); }
public async Task UpdateAsync(UserTestUpdate userTestUpdate) { context.UserTestUpdate.Update(userTestUpdate); await context.SaveChangesAsync(); }
public void Update(UserTestUpdate userTestUpdate) { context.UserTestUpdate.Update(userTestUpdate); context.SaveChanges(); }