Example #1
0
        public async Task <ActionResult> CreateMaster(OapHierarchy model)
        {
            // TODO: Add insert logic here
            var response = await OapHierarchyClient.AddHierarchyAsync(model);

            return(RedirectToAction("Index"));
        }
Example #2
0
 public async Task <ActionResult> CreateChild(OapHierarchy model)
 {
     if (model.ParentHierarchyId > 0)
     {
         ViewData[CurrentTypeId] = model.ParentHierarchyId;
         var response = await OapHierarchyClient.AddHierarchyAsync(model);
     }
     return(RedirectToAction("Index"));
 }