public IActionResult Insert([FromBody, SwaggerRequestBody("Form to insert an Account")] AccountForm form) { try { int idCreated = _service.Create(form.ToServiceLayerAccountFormInsert()); return(Ok(idCreated)); } catch (ArgumentException e) { return(new BadRequestObjectResult(e.Message)); } }