// GET: SuperUserEndOfShifts/Details/5 public async Task <ActionResult> EOSPrint(int id) { SuperUserEndOfShift superUserEndOfShift = await db.SuperUserEndOfShifts.FindAsync(id); //SuperUserEndOfShift superUserEndOfShift = await db.SuperUserEndOfShifts.FindAsync(id); return(View("EOSPrint", superUserEndOfShift)); }
public async Task <ActionResult> EOSPopup(int id) { SuperUserEndOfShift superUserEndOfShift = await db.SuperUserEndOfShifts.FindAsync(id); if (superUserEndOfShift != null) { if (Request.IsAjaxRequest()) { return(View("_EOSPrint", superUserEndOfShift)); } else { return(View("EOSPrint", superUserEndOfShift)); } } return(View("Index")); }