public async Task <StatusData <string> > UpdateBasicContactPerson(BasicContactPersonWebRequest request, SystemSession session) { var serviceRequest = new UserInfoPerson { UserId = session.UserName, FirstName = request.FirstName, LastName = request.LastName, BirthDate = request.BirthDate.ToString(), ReligionId = new Religion { Name = request.Religion }, Nationality = new Nationality { Name = request.Nationality }, Interests = request.Interests, Title = request.Title, RelationshipStatusId = new RelationshipStatus { RelationshipStatusId = (int)request.RelationshipStatusId }, Gender = ((byte)request.Gender).ToString() }; var response = (await Task.Factory.StartNew( () => Client.UserService.setBasicContactPersion(serviceRequest, session.GetSession())) .ConfigureAwait(false)).GetStatusData <string>(); return(response); }
public virtual Task <StatusData <string> > UpdateBasicContactPerson(BasicContactPersonWebRequest request, SystemSession session) { return(_jUnitOfWork.ProfilePersonal.UpdateBasicContactPerson(request, session)); }
public async Task <HttpResponseMessage> ContactBasicUpdate([FromBody] BasicContactPersonWebRequest request) { var response = await _profilePersonalService.UpdateBasicContactPerson(request, Request.GetSession()).ConfigureAwait(false); return(Request.SystemResponse(response)); }