コード例 #1
0
        public OperationResult Create(CreateContactMe command)
        {
            var operation = new OperationResult();

            var client = new ContactMe(command.FullName, command.Email, command.Mobile, command.Message);

            _contactMeRepository.Create(client);
            _contactMeRepository.SaveChanges();

            return(operation.Succedded());
        }
コード例 #2
0
        public IActionResult OnPost(CreateContactMe command)
        {
            var result = _contactMeApplication.Create(command);

            return(RedirectToPage("./SendMessageSuccess"));
        }