Пример #1
0
        public ActionResult ConfirmDelete(string Id)
        {
            Product producttodelete = context.Find(Id);

            if (producttodelete == null)
            {
                return(HttpNotFound());
            }
            else
            {
                context.Delete(Id);
                context.Commit();
                return(RedirectToAction("Index"));
            }
        }
Пример #2
0
 public void SaveRightBase64(string key, string base64)
 {
     _inMemoryRepository.Save(key + RIGHT_SUFFIX, base64);
     _inMemoryRepository.Delete(key + RESULT_SUFFIX);
 }