/// <summary> /// FindProductByKey /// </summary> /// <param name="request">FindProductRequest</param> /// <returns>FindProductResponse</returns> public async Task <FindProductResponse> FindProductByKey(FindProductRequest request) { var response = new FindProductResponse(); try { var param = new FindProductParameter() { key = request.key }; var result = _dataAccess.FindProduct(param); if (result != null) { response.ListProduct = MapList <FIND_PRODUCT_Result, FindProductDto>(result.ToList()); response.Success = true; } } catch (Exception ex) { response.Success = false; } return(await Task.FromResult(response)); }