//[Authorize(Roles = "Employee")] public ActionResult SocialDetails(EmpSocialDetails SocialDetails) { if (ModelState.IsValid) { bool result = false; if (!string.IsNullOrEmpty(SocialDetails.LinkedIn) || !string.IsNullOrEmpty(SocialDetails.Facebook) || !string.IsNullOrEmpty(SocialDetails.Skypeid) || !string.IsNullOrEmpty(SocialDetails.GooglePlus)) { string UserId = User.Identity.GetUserId(); result = ems.AddEmployeeSocailDetails(UserId, SocialDetails.LinkedIn, SocialDetails.Facebook, SocialDetails.Skypeid, SocialDetails.GooglePlus); } return(RedirectToAction("SocialDetails", "Employee", new { area = "EMS", status = result })); } return(RedirectToAction("SocialDetails", "Employee", new { area = "EMS" })); }