Exemplo n.º 1
0
 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 }));
 }
Exemplo n.º 2
0
        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));
        }