public Task<StatusData<string>> UpsertContactSetting(ContactSettingRequest request, byte mode, SystemSession session)
 {
     return _jUnitOfWork.Profile.UpsertContactSetting(request, mode, session);
 }
        public virtual async Task<StatusData<string>> UpsertContactSetting(ContactSettingRequest request, byte mode,
            SystemSession session)
        {
            var serviceRequest = new UserContactSettings
            {
                UserId = session.UserId,
                ContactId = request.ContactId,
                FieldId = (int)request.FieldType,
                ContactChatNetworkId = request.ContactChatNetworkId,
                ContactCustomId = request.ContactCustomId,
                Mode = mode,
                Value = request.Value,
                EntryList = string.Join(",", request.Entries),
                EntriesInPage = null

            };
            var response =
                await
                    Task.Factory.StartNew(
                        () => Client.SettingService.upsertContactSetting(serviceRequest, session.GetSession()))
                        .ConfigureAwait(false);
            var data = new StatusData<string>
            {
                Status = (SystemDbStatus)response.DbStatusCode,
                Message = response.DbStatusMsg,
                SubStatus = response.DbSubStatusCode
            };
            return data;
        }