public ActionResult EliminarGasto(int idCD)
        {
            try
            {
                var cd  = service.GetComprasDetalleServicioById(idCD);
                var res = service.DeleteComprasDetalleServicio(cd);


                return(Json(new { success = res }));
            }
            catch (Exception ex)
            {
                AltivaLog.Log.Insertar(ex.ToString(), "Error");
                return(BadRequest());
            }
        }