Exemplo n.º 1
0
        public ActionResult Login(String uname, long contactNum)
        {
            Distributors dist = DistributorsBM.GetDistributorByLogin(uname, contactNum);

            ViewData["distributor"] = dist;
            return(View());
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            List <Distributors> distributorsList = DistributorsBM.GetAllDistributors();

            ViewData["Dlist"] = distributorsList;
            return(View());
        }
Exemplo n.º 3
0
 public ActionResult Insert(string name, string address, long mobno)
 {
     DistributorsBM.InsertDistributor(name, address, mobno);
     ViewData["msg"] = "Congratulation,Now You are Distributor";
     return(View());
 }