Example #1
0
        public ActionResult Setting(int id)
        {
            var user  = Models.User.CurrentUser;
            var stall = Models.Stall.FindById(id, _db);

            if (!stall.UserId.Equals(CurrentUser.Id))
            {
                StallApplication.SysErrorFormat("user id not match {0} <> {1}", stall.UserId, CurrentUser.Id);
                return(View("Error"));
            }

            ViewBag.Stall = stall;

            return(View());
        }