public ActionResult AddAttrToCollectList(long id /*attribute id*/, long deviceid /*physical device id*/, long logicaldeviceid, long objectid) { try { _deviceAttributeRepository.AddAttrToCollectList(deviceid, id, objectid, GetUserId()); return(RedirectToAction("Index", "DeviceAttribute", new { id = objectid, deviceid, logicaldeviceid })); } catch (Exception e) { ExceptionMessageToViewBag(e); return(View("Error")); } }