public JsonResult CheckOne(string descripcion, string abreviatura) { Tramites obj = new Tramites(); TramiteRepository TramiteRep = new TramiteRepository(); try { if (descripcion != "" || abreviatura != "") { obj = TramiteRep.CheckTramite(descripcion, abreviatura); } else { obj.Accion = 0; obj.Mensaje = "El parámetro tiene un valor incorrecto!"; } } catch (Exception ex) { obj.Accion = 0; obj.Mensaje = ex.Message.ToString(); } return(Json(obj, JsonRequestBehavior.AllowGet)); }