public ActionResult Create(EmployeeModel emodel)
 {
     try
     {
         if (ModelState.IsValid)
         {
             EmployeeDBHandle sdb = new EmployeeDBHandle();
             if (sdb.AddEmployee(emodel))
             {
                 ViewBag.Message = "Employee Details Added Successfully.";
                 ModelState.Clear();
             }
         }
         return(View());
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public ActionResult Create(EModel emodel)
        {
            try
            {
                // TODO: Add insert logic here
                if (ModelState.IsValid)
                {
                    EmployeeDBHandle edb = new EmployeeDBHandle();
                    if (edb.AddEmployee(emodel))
                    {
                        ViewBag.Message = "Employee Details Added Successfully";
                        ModelState.Clear();
                    }
                }

                return(View());
            }
            catch
            {
                return(View());
            }
        }