Example #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            tbTasasCambio tbTasasCambio = db.tbTasasCambio.Find(id);

            db.tbTasasCambio.Remove(tbTasasCambio);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Example #2
0
 public ActionResult Edit([Bind(Include = "tcam_Codigo,mnda_ISO,tcam_ISOMonedaDestino,tcam_FechaTasasCambio")] tbTasasCambio tbTasasCambio)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbTasasCambio).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tbTasasCambio));
 }
Example #3
0
        public ActionResult Create([Bind(Include = "tcam_Codigo,mnda_ISO,tcam_ISOMonedaDestino,tcam_FechaTasasCambio")] tbTasasCambio tbTasasCambio)
        {
            if (ModelState.IsValid)
            {
                db.tbTasasCambio.Add(tbTasasCambio);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(tbTasasCambio));
        }
Example #4
0
        // GET: /tbTasasCambios/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbTasasCambio tbTasasCambio = db.tbTasasCambio.Find(id);

            if (tbTasasCambio == null)
            {
                return(HttpNotFound());
            }
            return(View(tbTasasCambio));
        }