//[Authorize(Roles = "Employee")] public ActionResult RemoveSkills(string SN, string PId) { Int64 pId = 0; if (!string.IsNullOrEmpty(PId)) { pId = Convert.ToInt64(PId); } bool result = ems.DeleteEmployeeSkills(User.Identity.GetUserId(), SN, pId); return(RedirectToAction("SkillDetails", "Employee", new { area = "EMS", result = "Deleted" })); }