예제 #1
0
        public ActionResult AddTask(TasksHomeVM vm)
        {
            InsertDAL insertDAL = new InsertDAL();

            vm.NewTask.UserAssignedBy = Globals.LOGGED_IN_USER;

            insertDAL.OpenConnection();

            insertDAL.InsertTask(vm.NewTask);

            insertDAL.CloseConnection();

            return(RedirectToAction("Index"));
        }