public ActionResult SaveData(ElSignatureViewModel model)
 {
     //TODO: undo this change
     //if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.Password) && WebSecurity.CurrentUserName==model.UserName)
     if (ModelState.IsValid && WebSecurity.Login(model.UserName, model.Password))
     {
         ActionItem item = CacheManager.GetCacheItem<ActionItem>(getCacheKey());
         if (ActionItemRepos.Save(model.UserName, model.SignatureType, item))
         {
             return RedirectToAction("Index", new { listId = item.ActionListId });
         }
     }
     else
     {
         ViewBag.ErrorMessage = "We could not verify your signature";
         return View("ERROR");
     }
     return View("ElSignature",model);
 }
 public ActionResult ElSignature(ElSignatureType signatureType)
 {
     ElSignatureViewModel sig = new ElSignatureViewModel() { SignatureType = signatureType };
     return View(sig);
 }