Пример #1
0
        //[Authorize(Roles = "Employee")]
        public ActionResult SkillDetails(EmpSkillView SkillDetails, string ProfileTypeId)
        {
            string UserId = User.Identity.GetUserId();

            if (SkillDetails.ProfileId == 0)
            {
                SkillDetails.ProfileId = Convert.ToInt64(ProfileTypeId);
            }
            bool result = ems.AddEmployeeSkillDetails(UserId, SkillDetails.SkillName, SkillDetails.ProfileId, SkillDetails.YearofExperience);

            return(RedirectToAction("SkillDetails", "Employee", new { area = "EMS", status = result }));
        }