Back to list
Views:   5K
Replies:  1
Archived

Found an error in Pattern in Action project.

Hi

I found an error in Pattern in Action, at Service Layer, Service.cs:

// Product Services
public Product GetProduct(int productId)
{
        var product = productDao.GetProduct(productId);
        if (product.Category == null)
        product.Category = categoryDao.GetCategoryByProduct(productId);
        return product;
}

product.Category is never null, and in producDao.GetProduct(productId) it also get Category of Product. Edit: 

public Product GetProduct(int productId)
{
        var product = productDao.GetProduct(productId);
        return product;
}

And one Error in Pattern in Action, WinForms: Validate in Bussiness Object wasn't used in Presenter to validate input data.



 

 
Thanh Phong Pham, Feb 25, 2014
Reply 1
Thanks Thanh. We will review and correct in the next release. 
Jack Poorte, Feb 27, 2014


Stay Inspired!
Join other developers and designers who have already signed up for our mailing list.
Terms     Privacy     Licensing       EULA       Sitemap      
© Data & Object Factory, LLC.
Made with    in Austin, Texas.      Vsn 1.2.2