public virtual ActionResult UpdateConfigurationRemark(CustomerVasViewModel model) { //TC: Check VAS pattern RegEx, RegExDescription, InactiveFlag should not be modified here, Only remark column should be updated. _service.UpdateConfigurationRemark(model.CustomerId, model.VasId, model.UserRemarks, model.InactiveFlag); AddStatusMessage(string.Format("Remarks updated successfully for the customer {0}.", model.CustomerId)); return(RedirectToAction(Actions.CustomerVas(model.CustomerId, model.VasId))); }
public virtual ActionResult CustomerVas(string customerId, string vasId) { var customerVasList = _service.GetCustomerVasSettings(customerId).ToArray(); if (customerVasList.All(p => p.VasId != vasId)) { ModelState.AddModelError("", string.Format("VAS setting for customer {0} is already removed.", customerId)); return(RedirectToAction(Actions.Index())); } var customerVasSetting = customerVasList.First(p => p.VasId == vasId); var model = new CustomerVasViewModel { CustomerId = customerId, CustomerName = customerVasSetting.CustomerName, VasId = vasId, VasDescription = customerVasSetting.VasDescription, UserRemarks = customerVasSetting.Remark, VasPatternDescription = customerVasSetting.VasPatternDescription, InactiveFlag = customerVasSetting.InactiveFlag }; return(View(this.Views.CustomerVas, model)); }