private ProjectCategoryProduct IncludeProduct(ProjectCategoryProduct projectCategoryProduct) { try { projectCategoryProduct.Product = _productService.Get(projectCategoryProduct.GetProductId()); return(projectCategoryProduct); } catch (Exception e) { throw new Exception(e.Message); } }
private ProjectCategoryProduct IncludeSupplier(ProjectCategoryProduct projectCategoryProduct) { try { projectCategoryProduct.Supplier = _supplierService.Get(projectCategoryProduct.GetSupplierId()); return(projectCategoryProduct); } catch (Exception e) { throw new Exception(e.Message); } }