//[Authorize(Roles = "Employee")] public ActionResult ExperienceDetails(string ComapanyName, string WorkLocation, string LatestDesignation, string JoiningDate, string LeavingDate, bool WorkingStatus, int ProfileId, Int64 ExperienceId = 0) { string UserId = User.Identity.GetUserId(); DateTime Jdate = DateTime.ParseExact(JoiningDate, "dd-MM-yyyy", CultureInfo.InvariantCulture); DateTime?Ldate = null; if (!String.IsNullOrEmpty(LeavingDate)) { Ldate = DateTime.ParseExact(LeavingDate, "dd-MM-yyyy", CultureInfo.InvariantCulture); } bool result = ems.AddEmployeeExperienceDetails(ExperienceId, UserId, ComapanyName, WorkLocation, LatestDesignation, Jdate, Ldate, WorkingStatus, ProfileId); return(RedirectToAction("ExperienceDetails", "Employee", new { area = "EMS", status = result })); }