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()); }
public IActionResult OnPost(CreateContactMe command) { var result = _contactMeApplication.Create(command); return(RedirectToPage("./SendMessageSuccess")); }