public ActionResult CreateEmployee()
        {
            CreateEmployeeViewModel cvm = new CreateEmployeeViewModel();

            //cvm.UserName = User.Identity.Name;
            cvm.FooterData = new FooterViewModel();
            //cvm.FooterData.CompanyName = "StepByStepSchools";
            //cvm.FooterData.Year = DateTime.Now.Year.ToString();
            return View("CreateEmployee",cvm);
        }
 public ActionResult SaveEmployee(CreateEmployeeViewModel cvm)
 {
     Employee emp = new Employee();
     emp.EmployeeFirstName = cvm.FirstName;
     emp.EmployeeLastName = cvm.LastName;
     emp.EmployeeSalary = Convert.ToDouble( cvm.Salary);
     if (ModelState.IsValid)
     {
         EmployeeBusinessLayer ebl = new EmployeeBusinessLayer();
         ebl.AddEmployee(emp);
         return RedirectToAction("Index");
     }
     else
     {
         CreateEmployeeViewModel cvmms = new CreateEmployeeViewModel();
         //cvmms.FooterData = new FooterViewModel();
         //cvmms.FooterData.CompanyName = "Step By Step Schools";
         //cvmms.FooterData.Year = DateTime.Now.Year.ToString(); ;
         cvmms.FirstName = cvm.FirstName;
         cvmms.LastName = cvm.LastName;
         cvmms.Salary = cvm.Salary;
         return View("CreateEmployee",cvm);
     }
 }