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)); }
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 })); }
public ActionResult UserSignaturePanel(UserSignatureViewModel viewModel) { ViewBag.ViewModel = viewModel; return(View("~/Views/Account/Module/UserSignaturePanel.ascx")); }