a guest Dec 10th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- public interface IContactSubmitter
- void SubmitContact(string message);
- public class ContactController : Controller
- private readonly IContactSubmitter _contactSubmitter;
- public ContactController(IContactSubmitter contactSubmitter)
- _contactSubmitter = contactSubmitter;
- public ViewResult Contact(string message)
- // Pretend there was some validation done here..
- if (ValidateMessage(message))
- return View();
RAW Paste Data