public static bll.ProjectCategoryProduct ToBLL(this dto.ProjectCategoryProduct dto)
        {
            bll.ProjectCategoryProduct bll = new bll.ProjectCategoryProduct(dto.ProductId, dto.SupplierId);

            bll.Project_CategoryId = dto.Project_CategoryId;
            bll.Code = dto.Code;

            return(bll);
        }
 public void AddProjectCategoryProduct(ProjectCategoryProduct product)
 {
     if (product is null)
     {
     }
     else
     {
         this.ProjectCategoryProducts.Add(product);
     }
 }
        public static dto.ProjectCategoryProduct ToDTO(this bll.ProjectCategoryProduct bll)
        {
            dto.ProjectCategoryProduct dto = new dto.ProjectCategoryProduct();

            dto.Project_CategoryId = bll.Project_CategoryId;
            dto.Code       = bll.Code;
            dto.SupplierId = bll.Supplier.Id;
            dto.ProductId  = bll.Product.Id;

            return(dto);
        }