public IActionResult OperDet(OperDetVM oper) { if (oper.st == null) { return(RedirectToAction("OperHome", "Home", new { st = oper.st })); } return(RedirectToAction("OperHome", "Home", new { idplan = oper.Id })); }
public async Task <IActionResult> OperDet(int id, string st) { Operation op = await db.Operations.FirstAsync(p => p.Id == id); OperDetVM oper = new OperDetVM(); oper.op = op; oper.Id = op.PlanId; oper.st = st; return(View(oper)); }