Ejemplo n.º 1
0
        public ActionResult Editbranch(Branch branch)
        {
            Branchservice branchservice = new Branchservice();

            branchservice.updatebranch(branch);
            return(View("Addbranch"));
        }
Ejemplo n.º 2
0
        public ActionResult Addbranch(Branch branch)
        {
            Branchservice branchservice = new Branchservice();

            branchservice.savebranch(branch);
            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult Editbranch(int id)
        {
            Branchservice branchservice = new Branchservice();
            var           branch        = branchservice.getbyid(id);

            return(View(branch));
        }
Ejemplo n.º 4
0
        // GET: Branch
        public ActionResult listiBranch()
        {
            Branchservice branchservice = new Branchservice();
            var           listbranch    = branchservice.getbranch();

            return(View(listbranch));
        }