Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpPost]
- public void Post([FromQuery] Message message)
- {
- _service.UserRequest(message);
- }
- public class Message : IEntity
- {
- public string To { get; set; } = string.Empty;
- public string From { get; set; } = string.Empty;
- public string Body { get; set; } = string.Empty;
- }
Add Comment
Please, Sign In to add comment