public ActionResult AssignIdentifier(long id /*the identifier of attribute*/, long objectid) { try { FillAssignIdentifierViewBag(objectid); ViewCOSEMAttributeDataType viewcosemattributedatatype = _cosemAttributeDataTypeRepository.GetCosemAttributeDataType(objectid, id, GetUserId()); return(View(viewcosemattributedatatype)); } catch (Exception e) { ExceptionMessageToViewBag(e); return(View("Error")); } }
public ActionResult AssignIdentifier(ViewCOSEMAttributeDataType viewcosemattributedatatype) { try { if (viewcosemattributedatatype != null) { if (ModelState.IsValid) { _cosemAttributeDataTypeRepository.UpdateAttrIdentifier(viewcosemattributedatatype, GetUserId()); return(RedirectToAction("Attributes", new { id = viewcosemattributedatatype.COSEMObjectID })); } FillAssignIdentifierViewBag(viewcosemattributedatatype.COSEMObjectID); } return(View(viewcosemattributedatatype)); } catch (Exception e) { ExceptionMessageToViewBag(e); return(View("Error")); } }
public void UpdateAttrIdentifier(ViewCOSEMAttributeDataType v, Guid userId) { }
public void UpdateAttrIdentifier(ViewCOSEMAttributeDataType v, Guid userId) { Trace.Assert(v != null); _db.UpdateAttrIdentifier(v.Identifier, v.AttributeID, v.COSEMObjectID, userId); }