public async Task <string> DeleteEFCoreASync(int id) { UserTestDelete userTestDelete = new UserTestDelete(id); await eFCoreASyncRepository.DeleteAsync(userTestDelete); return("test"); }
public string DeleteEFCoreSync(int id) { UserTestDelete userTestDelete = new UserTestDelete(id); eFCoreSyncRepository.Delete(userTestDelete); return("test"); }
public async Task DeleteAsync(UserTestDelete userTestDelete) { context.UserTestDelete.Remove(userTestDelete); await context.SaveChangesAsync(); }
public void Delete(UserTestDelete userTestDelete) { context.UserTestDelete.Remove(userTestDelete); context.SaveChanges(); }