public async Task <IActionResult> Index([FromQuery] UserFilterViewModel filter) { var apiClient = new UsersClient(Configuration.GetValue <String>("UsersApi"), GetHttpClient()); var users = await apiClient.FindUsersAsync( firstName : "Dejan", lastName : "", email : "*****@*****.**", pageIndex : 0, pageSize : 10, occupation : "", education : "", dateOfBirth : null ); var user = users?.FirstOrDefault(); if (user != null) { await apiClient.UpdateUserInfoAsync( new UpdateUserInfoCommand() { DateOfBirth = user.DateOfBirth, Education = user.Education, FirstName = user.FirstName, LastName = user.LastName, Occupation = "IT master - level 1" } , user.Id.ToString()); } return(View("Index")); }