using System.Web.Mvc; using WX.CRM.Common; using WX.CRM.IBLL.Csvr; namespace WX.CRM.WEB.Controllers.Csvr { public class MsgOpenAccountController : BaseController { ValidationErrors errors = new ValidationErrors(); ICSVR_MSGOPENACCOUNT msgOpenAccount; public MsgOpenAccountController(ICSVR_MSGOPENACCOUNT _msgOpenAccount) { this.msgOpenAccount = _msgOpenAccount; } public ActionResult RedirectToCustomerDetial(string resid, int isView) { bool result = isView == 1 ? true : msgOpenAccount.UpdateIsView(ref errors, resid); if (result) { //if (isView == 0) // CacheHelper.Remove("cache_msgOpenAccountList" + UserId.ToString()); //if (isView != 1) // PopupMessageFactory.OpenAccountMessage.SetView(UserId, resid); Response.Redirect(Url.Action("CustomerDetail", "CustomerInfo", new { resid = resid })); } ViewBag.Msg = errors.Error; return View(); } } }