Exemplo n.º 1
0
        //[Authorize(Roles = "Employee")]
        public ActionResult ProfileType(string PreviousPage, string UserId, string ProfileName, string useraction, int ProfileId = 0)
        {
            UserId = User.Identity.GetUserId();
            bool result = ems.AddProfileTypeDetails(ProfileId, UserId, ProfileName);

            if (PreviousPage == "exp")
            {
                return(RedirectToAction("ExperienceDetails", "Employee", new { area = "EMS", ProfileName = ProfileName }));
            }
            else if (PreviousPage == "skill")
            {
                return(RedirectToAction("SkillDetails", "Employee", new { area = "EMS", ProfileName = ProfileName }));
            }
            else
            {
                return(RedirectToAction("ProfileType", "Employee", new { area = "EMS", status = result }));
            }
        }