public JsonResult Guardar_lote(DateTime?fecha_fab, DateTime?fecha_ven, string lote = "") { decimal IdProducto_padre = 0; int IdEmpresa = Convert.ToInt32(Session["IdEmpresa"]); if (SessionFixed.IdProducto_padre_dist != null) { IdProducto_padre = Convert.ToDecimal(SessionFixed.IdProducto_padre_dist); } bus_producto.guardar_loteDB(IdEmpresa, IdProducto_padre, fecha_fab == null ? DateTime.MinValue : Convert.ToDateTime(fecha_fab), Convert.ToDateTime(fecha_ven), lote); return(Json("", JsonRequestBehavior.AllowGet)); }