public async Task<StatusData<string>> UpdateBasicContactCompany(BasicContactBusinessRequest request, SystemSession session)
 {
     var serviceRequest = new BusinessBasicDetails
     {
         UserId = session.UserId,
         About = request.About,
         CompanyName = request.CompanyName,
         Street = request.Street,
         Town = request.Town,
         CityId = request.CityId,
         Phone = request.Phone,
         Fax = request.Fax,
         Email = request.Email,
         Web = request.Web
     };
     var response = (await Task.Factory.StartNew(() => Client.UserService.setBusinessBaiscDetail(serviceRequest, session.GetSession())).ConfigureAwait(false)).GetStatusData<string>();
     return response;
 }
 public void send_setBusinessBaiscDetail(BusinessBasicDetails details, Session session)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("setBusinessBaiscDetail", TMessageType.Call, seqid_));
   setBusinessBaiscDetail_args args = new setBusinessBaiscDetail_args();
   args.Details = details;
   args.Session = session;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
 public IAsyncResult send_setBusinessBaiscDetail(AsyncCallback callback, object state, BusinessBasicDetails details, Session session)
      public DbStatus setBusinessBaiscDetail(BusinessBasicDetails details, Session session)
      {
        #if !SILVERLIGHT
        send_setBusinessBaiscDetail(details, session);
        return recv_setBusinessBaiscDetail();

        #else
        var asyncResult = Begin_setBusinessBaiscDetail(null, null, details, session);
        return End_setBusinessBaiscDetail(asyncResult);

        #endif
      }
 public IAsyncResult Begin_setBusinessBaiscDetail(AsyncCallback callback, object state, BusinessBasicDetails details, Session session)
 {
   return send_setBusinessBaiscDetail(callback, state, details, session);
 }
 public void Read (TProtocol iprot)
 {
   TField field;
   iprot.ReadStructBegin();
   while (true)
   {
     field = iprot.ReadFieldBegin();
     if (field.Type == TType.Stop) { 
       break;
     }
     switch (field.ID)
     {
       case 1:
         if (field.Type == TType.Struct) {
           Details = new BusinessBasicDetails();
           Details.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       case 2:
         if (field.Type == TType.Struct) {
           Session = new Session();
           Session.Read(iprot);
         } else { 
           TProtocolUtil.Skip(iprot, field.Type);
         }
         break;
       default: 
         TProtocolUtil.Skip(iprot, field.Type);
         break;
     }
     iprot.ReadFieldEnd();
   }
   iprot.ReadStructEnd();
 }