Example #1
0
 public ActionResult Devolver(int id, RentVM model)
 {
     try
     {
         var rent = Map(model);
         _rentService.Update(rent);
         return RedirectToAction("Index");
     }
     catch
     {
         return View(model);
     }
 }
Example #2
0
 public Rent Map(RentVM model)
 {
     return Mapper.Map<RentVM, Rent>(model);
 }