Click here to Skip to main content
13,141,838 members (64,044 online)
Click here to Skip to main content

Tagged as


126 bookmarked
Posted 23 Nov 2011

Differences between MVC and MVP for Beginners

, 23 Nov 2011
This article aims to describe MVC and MVP in simple terms
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MVPTester
    public class Model:IStudentModel
        Dictionary<string,string> _repo = new Dictionary<string,string>();

        public void Save(string username,string email)
            _repo.Add(username, email);

        public string Get(string username)
                return _repo[username];
            catch (Exception ex)
                return String.Empty;

        public bool ValidateEmail(string email)
            return true;

        public bool IsEntryExisting(string username)
            return (Get(username) != String.Empty);


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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

John T.Emmatty
Software Developer (Senior) WEPA
India India
My aim is to write articles in plain English without any convoluted or periphrastic statements.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.170915.1 | Last Updated 23 Nov 2011
Article Copyright 2011 by John T.Emmatty
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid