public async Task ChangeStatus(string userId, UserStatus status) { var user = await _db.FindAsync <User>(userId); user.UserStatus = status; await _db.SaveChangesAsync(); }
public async Task ChangeStatus(string userId, UserStatus status) { var user = await _db.FindAsync <User>(userId); user.UserStatus = status; await _db.SaveChangesAsync(); }