public async Task<HttpResponseMessage> Cities(DataRequest request)
        {
            var response = new StatusData<IEnumerable<UserCity>> { Status = SystemDbStatus.Selected };

            if (request.Id == null && request.SearchString == null)
                return Request.SystemResponse<string>(SystemDbStatus.NotSupported, message: "Please provide city Id or search term.");
            response.Data = await _service.GetCities(request.Id, request.SearchString).ConfigureAwait(false);

            return Request.SystemResponse(response);
        }
 public async Task<HttpResponseMessage> AcademicInstitutes(DataRequest request)
 {
     return await CallGetData(request, SystemDataTable.AcademicInstitute).ConfigureAwait(false);
 }
 public async Task<HttpResponseMessage> ChatNetworks(DataRequest request)
 {
     return await CallGetData(request, SystemDataTable.ChatNetwork).ConfigureAwait(false);
 }
 private async Task<HttpResponseMessage> CallGetData(DataRequest request, string tableName)
 {
     var response = await _service.GetData(tableName, request.Id, request.SearchString).ConfigureAwait(false);
     return Request.SystemResponse(SystemDbStatus.Selected, response);
 }
 public async Task<HttpResponseMessage> SkillTypes(DataRequest request)
 {
     return await CallGetData(request, SystemDataTable.SkillType).ConfigureAwait(false);
 }
 public async Task<HttpResponseMessage> Religions(DataRequest request)
 {
     return await CallGetData(request, SystemDataTable.Religion).ConfigureAwait(false);
 }
 public async Task<HttpResponseMessage> Nationalities(DataRequest request)
 {
     return await CallGetData(request, SystemDataTable.Nationality).ConfigureAwait(false);
 }
 public async Task<HttpResponseMessage> Departments(DataRequest request)
 {
     return await CallGetData(request, SystemDataTable.Department).ConfigureAwait(false);
 }