コード例 #1
0
        public ActionResult Add(string name)
        {
            CorrolationIdHelper.SetCorrolationId(Guid.NewGuid());
            ServiceRequestWithData <ISingleSignOnToken, InventoryItemServiceCreateParameters> parameters = new ServiceRequestWithData <ISingleSignOnToken, InventoryItemServiceCreateParameters>
            {
                AuthenticationToken = GetAuthenticationToken(),
                Data = new InventoryItemServiceCreateParameters {
                    name = name
                }
            };

            InventoryItemService.Create(parameters);
            return(RedirectToAction("Index"));
        }