Exemplo n.º 1
0
        // GET: Emp
        public ActionResult Login(FormCollection form)
        {
            DataBaseConnection c = null;

            try
            {
                c = new DataBaseConnection();
                string name = Request.Form["name"];
                ViewBag.name = c.EmpLogin(Request.Form["name"]);
            }
            catch (Exception ex)
            {
            }
            finally
            {
            }
            return(View(c));
        }