Exemplo n.º 1
0
 public IActionResult EditStructure(int id = 0)
 {
     if (id != 0)
     {
         var structure = _structureService.GetStructureDetails(id);
         return(View(structure));
     }
     else
     {
         return(View(new StructureDetailsVM()));
     }
 }
Exemplo n.º 2
0
        public IActionResult GetDetails(int id)
        {
            var result = _structureService.GetStructureDetails(id);

            return(Ok(result));
        }