示例#1
0
        public ActionResult Officer_details()
        {
            OfficerRepository orepo = new OfficerRepository();
            List <Officer>    ll    = orepo.GetAll();

            return(View(ll));
        }
示例#2
0
        public ActionResult Officer_Salary()
        {
            OfficerRepository brepo = new OfficerRepository();
            List <Officer>    blist = brepo.GetAll();

            List <Officer> slist = new List <Officer>();

            foreach (Officer of in blist)
            {
                if (of.Officer_branch != Session["Branch"].ToString())
                {
                }
                else
                {
                    slist.Add(of);
                }
            }

            return(View(slist));
        }