public ActionResult update(int id)
        {
            salaryViewModel studentVM = new salaryViewModel();
            salary          student   = studentVM.print(id);

            return(View(student));
        }
        //
        // GET: /home/

        public ActionResult Index()
        {
            salaryViewModel studentVM = new salaryViewModel();
            List <salary>   students  = studentVM.personDetails();

            return(View(students));
        }
        public ActionResult Delete(int id)
        {
            salaryViewModel studentVM = new salaryViewModel();

            studentVM.Deleteperson(id);

            return(RedirectToAction("Index"));
        }
 public ActionResult Create(salary student)
 {
     if (ModelState.IsValid)
     {
         salaryViewModel studentVM = new salaryViewModel();
         studentVM.Addperson(student);
         return(RedirectToAction("Index"));
     }
     return(View());
 }
        public ActionResult login(login login)
        {
            if (ModelState.IsValid)
            {
                salaryViewModel studentVM = new salaryViewModel();
                studentVM.login(login);
                return(RedirectToAction("Index"));
            }

            return(View());
        }