public static List <AlmacenInventarioLoteInfo> ObtenerLotes(int idProducto, int idAlmacen)
        {
            List <AlmacenInventarioLoteInfo> listaLotes = null;

            try
            {
                SeguridadInfo seguridad = HttpContext.Current.Session["Seguridad"] as SeguridadInfo;

                if (seguridad != null)
                {
                    var almacenPl = new AlmacenInventarioLotePL();

                    AlmacenInfo almacen = new AlmacenInfo()
                    {
                        AlmacenID = idAlmacen
                    };
                    ProductoInfo producto = new ProductoInfo()
                    {
                        ProductoId = idProducto
                    };

                    listaLotes = almacenPl.ObtenerPorAlmacenProducto(almacen, producto);
                }
                else
                {
                    throw new ExcepcionServicio("SesionExpirada");
                }
            }
            catch (ExcepcionServicio ex)
            {
                Logger.Error(ex);
                throw new ExcepcionServicio(ex.Message);
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new Exception(ex.Message);
            }

            return(listaLotes);
        }