public async Task<StatusData<string>> UpsertCompanyDepartmentEmployee(CompanyDepartmentEmployeeRequest request, int mode, SystemSession session) { var serviceRequest = new DepartmentEmployees { UserId = session.UserId, Mode = mode, DepartmentId = request.DepartmentId, EmployeeIds = string.Join(",", request.EmployeeIds) }; var response = (await Task.Factory.StartNew(() => Client.UserService.upsertDepartmentEmployees(serviceRequest, session.GetSession())).ConfigureAwait(false)).GetStatusData<string>(); return response; }
public void send_upsertDepartmentEmployees(DepartmentEmployees departmentEmployees, Session session) #endif { oprot_.WriteMessageBegin(new TMessage("upsertDepartmentEmployees", TMessageType.Call, seqid_)); upsertDepartmentEmployees_args args = new upsertDepartmentEmployees_args(); args.DepartmentEmployees = departmentEmployees; args.Session = session; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public IAsyncResult send_upsertDepartmentEmployees(AsyncCallback callback, object state, DepartmentEmployees departmentEmployees, Session session)
public DbStatus upsertDepartmentEmployees(DepartmentEmployees departmentEmployees, Session session) { #if !SILVERLIGHT send_upsertDepartmentEmployees(departmentEmployees, session); return recv_upsertDepartmentEmployees(); #else var asyncResult = Begin_upsertDepartmentEmployees(null, null, departmentEmployees, session); return End_upsertDepartmentEmployees(asyncResult); #endif }
public IAsyncResult Begin_upsertDepartmentEmployees(AsyncCallback callback, object state, DepartmentEmployees departmentEmployees, Session session) { return send_upsertDepartmentEmployees(callback, state, departmentEmployees, 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) { DepartmentEmployees = new DepartmentEmployees(); DepartmentEmployees.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(); }