public ActionResult Officer_details() { OfficerRepository orepo = new OfficerRepository(); List <Officer> ll = orepo.GetAll(); return(View(ll)); }
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)); }