コード例 #1
0
        public ActionResult UserSignature(UserSignatureViewModel viewModel)
        {
            ViewBag.ViewModel = viewModel;
            var item = models.GetTable <UserProfileExtension>().Where(u => u.UID == viewModel.UID).FirstOrDefault();

            return(View("~/Views/Account/Module/UserSignature.ascx", item));
        }
コード例 #2
0
        public ActionResult CommitSignature(UserSignatureViewModel viewModel)
        {
            ViewBag.ViewModel = viewModel;

            var item = models.GetTable <UserProfileExtension>().Where(s => s.UID == viewModel.UID).FirstOrDefault();

            if (item != null)
            {
                item.Signature = viewModel.Signature;
                models.SubmitChanges();
            }

            return(Json(new { result = true }));
        }
コード例 #3
0
 public ActionResult UserSignaturePanel(UserSignatureViewModel viewModel)
 {
     ViewBag.ViewModel = viewModel;
     return(View("~/Views/Account/Module/UserSignaturePanel.ascx"));
 }