public ActionResult ConfirmDelete(string Id) { Product producttodelete = context.Find(Id); if (producttodelete == null) { return(HttpNotFound()); } else { context.Delete(Id); context.Commit(); return(RedirectToAction("Index")); } }
public void SaveRightBase64(string key, string base64) { _inMemoryRepository.Save(key + RIGHT_SUFFIX, base64); _inMemoryRepository.Delete(key + RESULT_SUFFIX); }