public void Post([FromBody] ContactViewModel contactViewModel) { if (contactViewModel != null && contactViewModel.IsValid()) { var contactModel = GetContactModel(contactViewModel); _contactSender.SendContactInfo(_applicationSettings.AdminEmail, contactModel, _applicationSettings.ContactEmailTemplatePath); } }