public Task<StatusData<string>> UpdateBasicContactPerson(BasicContactPersonRequest request, SystemSession session) { return _jUnitOfWork.Profile.UpdateBasicContactPerson(request, session); }
public virtual async Task<StatusData<string>> UpdateBasicContactPerson(BasicContactPersonRequest request, SystemSession session) { var serviceRequest = new UserInfoPerson { UserId = session.UserName, FirstName = request.FirstName, LastName = request.LastName, // BirthDate = request.BirthDate.ToString(), // ReligionId = new Religion { ReligionId = Convert.ToInt64(request.Religion) }, // Nationality = new Nationality { Name = request.Nationality }, // Interests = request.Interests, Title = request.Title // RelationshipStatusId = new RelationshipStatus { RelationshipStatusId = request.RelationshipStatusId }, // Gender = request.Gender.ToString() }; var response = (await Task.Factory.StartNew( () => Client.UserService.setBasicContactPersion(serviceRequest, session.GetSession())) .ConfigureAwait(false)).GetStatusData<string>(); return response; }