asp.net - Implementing 3-tier Architecture in MVC3 -


i want create simple application user can register himself credentials first name,last name , on..after clicking on register button bring him on mail authentication of user have link , clicking on link redirect login page.i want implement using 3-tier architecture in mvc3.i have created project choosing mvc template , named presentation , bll , dal should do? have created model:

public class register     {         public int id { get; set; }         public string  first_name { get; set; }         public string last_name { get; set; }         public string email_address { get; set; }         public bool accept_term { get; set; }         public bool male { get; set; }         public bool female { get; set;}         public string current_location { get; set; }     } 

create class library bll , class library dal, reference bll in mvc project , reference dal in bll project. mvc project make calls bll, in turn call dal data storage/retrieval. bll can passthrough in instances, while enforcing business rules or other operations in other cases.

you should consider moving model classes separate class library well, way of tiers (mvc, bll , dal) can "see" , use model objects; of course means tiers need reference model project. easier pass objects around having methods parameters each value of object.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -