|
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using NHibernate.MapClasses;
using NHibernate;
namespace MVC.Controllers
{
/// <summary>
/// This is the interface the View will use to communicate
/// with the Controller object using a simple Call Back Pattern.
///
/// Yes - it's the same interface with different names as IDataModel
/// but this is just a very simple example. What's important, example
/// wise, is that this shows how to very loosely connect the view
/// to the model using interfaces and factories. This makes for an
/// extremely flexible architecture that's a breeze to change with
/// minimal impact to the rest of your code.
/// </summary>
public interface IStoreController
{
//general
MVC.Views.IGeneralView View //has to be object bc. you have many controllers and we use reflections
{
get;
set;
}
IList<Product> ListOfBooksForSale();
IList<CartMember> ListOfCartMembers();
void add_item_to_cart(int id);
void CreateOrder(IOrderedDictionary InputParameters,ref List<CartMember> CartSession);
void EmptyCart();
Order SingleOrder();
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
After defending his
PhD thesis in 2005 (computational nuclear physics) at Vanderbilt in Nashville, the author decided to pursue a career in software development. As a long time open source advocate, he started with writing web applications using Linux-Apache-MySql-P (LAMP) framework. After that experience, he decided to embrace Microsoft technologies.
Currently working as a web developer in .NET platform in the online payments company.