public DynamicListDTO searchemployee() { DynamicListDTO listJobOrder = _dapperrepository.GellAllData(_connectionString); //if(string.IsNullOrEmpty(listJobOrder.errorMessage)) // { // return Ok(listJobOrder); //} //else //{ // throw new ApiException //} return(listJobOrder); }