public JsonResult Orcamento_Excluir(int id) { int retorno = new OrcamentoBLL().Orcamento_Excluir(id); bool valid = retorno >= 0; return(Json(new { status = valid, erroId = retorno }, JsonRequestBehavior.AllowGet)); }
public JsonResult Orcamento_ServicosAdicionados_Salvar(string ids_retorno, string valores_retorno) { int retorno = new OrcamentoBLL().Orcamento_ServicosAdicionados_Salvar(ids_retorno, valores_retorno); bool valid = retorno >= 0; return(Json(new { status = valid, erroId = retorno }, JsonRequestBehavior.AllowGet)); }
public JsonResult Orcamento_Adicionar_Servico(int orc_id, int obj_id, int ose_fase, string ose_codigo_der, decimal ose_quantidade) { int retorno = new OrcamentoBLL().Orcamento_Adicionar_Servico(orc_id, obj_id, ose_fase, ose_codigo_der, ose_quantidade); bool valid = retorno >= 0; return(Json(new { status = valid, erroId = retorno }, JsonRequestBehavior.AllowGet)); }
public JsonResult OrcamentoDetalhes_AtivarDesativar(int ore_id) { int retorno = new OrcamentoBLL().OrcamentoDetalhes_AtivarDesativar(ore_id); bool valid = retorno >= 0; return(Json(new { status = valid, erroId = retorno }, JsonRequestBehavior.AllowGet)); }