Click here to Skip to main content
15,888,521 members
Articles / Web Development / ASP.NET

Model View Presenter And Its Best Practices

Rate me:
Please Sign up or sign in to vote.
2.73/5 (21 votes)
5 May 2008CPOL2 min read 65K   660   51  
The article describes Model View Presenter Architecture, its best practices and advantages.
//--------------------------------------------
//  Author        : Santosh Poojari
//  Created Date  : 22/02/2008
//  Email ID      : santosh.poojari@gmail.com
//--------------------------------------------


#region References
using System;
using System.Collections.Generic;
#endregion

namespace Project.Practice.MVP.Domain
{
    public class Demand
    {
        #region Private Members
        private int _demandID = int.MinValue;
        private string _demandName = string.Empty;
        #endregion

        #region Public Constructors
        /// <summary>
        /// Default Constructor
        /// </summary>
        public Demand()
        {

        }

        /// <summary>
        /// Parameterized Constructor
        /// </summary>
        /// <param name="demandID"></param>
        public Demand(int demandID)
        {
            _demandID = demandID;

        }
        /// <summary>
        /// Chain Constructor
        /// </summary>
        /// <param name="demandID"></param>
        /// <param name="demandName"></param>
        public Demand(int demandID, string demandName)
            : this(demandID)
        {
            _demandName = demandName;
        }

#endregion
       
        #region Public Property
        public int DemandID
        {
            get { return _demandID; }
            set { _demandID = value; }
        }
        public string DemandName
        {
            get { return _demandName; }
            set { _demandName = value; }
        }
        #endregion      
    }
}

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Technical Lead
Australia Australia
Whatsup-->Exploring--> MVC/HTML5/Javascript & Virtualization.......!
www.santoshpoojari.blogspot.com

Comments and Discussions