public Watch WatchSent(string guid, WatchSentForm form) { if (ModelState.IsValid) { return(this.ContractService.WatchSent(guid, form)); } throw new ArgumentException("invalid submission"); }
public Watch WatchSent(string guid, WatchSentForm form) { this.setupWatchContractCall(guid); UserInfo vendor = this.ValidateUserWithDualAuthCode(form.UserName, form.DualAuthCode); watchContractService.WatchSentRequestAsync(new WatchSentFunction() { VendorAddress = vendor.BlockchainAddress, WatchGUID = GUID, GasPrice = 0, SendingAddress = form.SendingAddress, ReceivingAddress = form.ReceivingAddress }).GetAwaiter().GetResult(); return(GetWatch(guid)); }