/// <summary> /// Get the Data based on ID and return to the model to update view. /// </summary> /// <param name="ID"></param> /// <returns></returns> // [TypeFilter(typeof(AuthorizeAction), Arguments = new object[] { "Write" })] public IActionResult Update(int ID) { RelationshipViewModel model = new RelationshipViewModel(); model.Relationship = _relationshipService.GetData(ID); if (model != null) { return(View("Index", model)); } else { return(View("SummaryView", model)); } }