public IActionResult AddCurrency(MaestroMoneda currency) { try { if (!setting.ExitsCurrency(currency.IdMoneda)) { setting.AddCurrency(currency); return(Ok()); } else { return(BadRequest("Este Id de Moneda ya existe")); } } catch (Exception ex) { return(BadRequest(ex.Message)); } }