public async Task <ActionResult <ChargeResponse> > Post(Charges.Business.Dtos.Charge charge) { try { ChargeResponse result = await actionFactory .CreateAddChargeAction() .Execute(charge); if (result is ChargeAlreadyExist) { return(BadRequest(new ChargeResponseKO() { Message = "Identifier already exist" }));; } return(Ok(result)); } catch (Exception e) { return(BadRequest(new ChargeResponseKO() { Message = e.Message })); } }