// POST: api/Cliente public GenericResponse <String> Post([FromBody] ClienteDto cliente) { GenericResponse <String> response = new GenericResponse <String>(); try { servicio.Crear(cliente); response = ResponseUtil.CrearRespuestaOk(); } catch (CustomResponseException ex) { throw ex; } catch (Exception ex) { throw new CustomResponseException(ex.Message, 500); } return(response); }