//
        // GET: /Lote/
        public ActionResult Index(bool? creado)
        {
            var service = new FabricacionServices.LotesServiceClient();
            var dtos = service.ListaLotes();

            Mapper.CreateMap<LoteDto, LoteViewModel>();
            var model = Mapper.Map<List<LoteViewModel>>(dtos);

            if (creado.HasValue && creado.GetValueOrDefault())
                ViewBag.MensajeConfirmacion = "El lote se insertó correctamente";

            return View(model);
        }