public ActionResult ChannelSettingAdd(SMSChannelSetting model) { this.SMSUIService.Add <SMSChannelSetting>(model); if (model.InstructionId.HasValue) { return(RedirectToAction("ChannelSettings", new { instructionId = model.InstructionId })); } return(RedirectToAction("ChannelSettings", new { channelId = model.ChannelId })); }
public ActionResult ChannelSettingAdd(int?channelId, int?instructionId) { SMSChannelSetting model = new SMSChannelSetting(); if (channelId.HasValue) { model.ChannelId = channelId.GetValueOrDefault(); } if (instructionId.HasValue) { model.InstructionId = instructionId.GetValueOrDefault(); } return(View(model)); }