Beispiel #1
0
        public IHttpActionResult Post(CheckingAccountRegisterCommand cmd)
        {
            var validator = cmd.Validate();

            if (!validator.IsValid)
            {
                return(HandleValidationFailure(validator.Errors));
            }

            return(HandleCallback(() => _accountsService.Add(cmd)));
        }