public ActionResult ConfirmDeleteEmployee(int teamId, int employeeId) { EmployeeService employeeRepo = new EmployeeService(); CD.Employee employees = employeeRepo.Get(employeeId); ProfilDetail pepito = new ProfilDetail(employees); return(View(pepito)); }
public ActionResult ConfirmDeleteEmployee(int teamId, /*int employeeId,*/ ProfilDetail collection) { try { // TODO: Add insert logic here TeamService r = new TeamService(); if (r.DelEmployee(collection.Id, teamId)) { return(RedirectToAction("Details", new { id = teamId })); } return(View(collection)); } catch { return(View(collection)); } }