コード例 #1
0
        // GET: Event/Create
        public ActionResult Create()
        {
            User userEdit = new User();

            userEdit = (User)Session["user"];

            Employer employer = new Employer();

            employer.EmployerLoadUserById2(userEdit.BaseUserID);

            if (employer.EmployerId == Guid.Parse("00000000-0000-0000-0000-000000000000"))
            {
                return(Redirect("Index"));
            }
            else
            {
                Event _event = new Event();

                return(View(_event));
            }
        }