public HttpResponseMessage crearCuentaController(DtoCuenta dto)
 {
     try
     {
         return(Request.CreateResponse(HttpStatusCode.OK, _cuentaService.CrearCuenta(dto)));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest, _apiResponseMessage.crearDtoErrorExceptionMessage(ex)));
     }
 }
 public ActionResult CrearCuenta(Cuenta cuenta)
 {
     service.CrearCuenta(cuenta);
     return(RedirectToAction("Index"));
 }