public void Insert(ProductView model) { using (var rep = new ProductRepository()) { rep.Insert(ConvertToProduct(model)); } }