Call MVC post method from postman and send parameters to it
I need to test this mvc method from postman, it is working in Browser. [HttpPost] [Route("login")] public async Task<ActionResult> Login(LogInRequest logInRequest) { User user = null; if (ModelState.IsValid) { ..... This is LogInRequest Class: public class LogInRequest { [Required] public string UserName { get; set; } [Required] public string Password { get; set; } public string Token { get; set; } public bool IsResetPassword { get; set; } public bool IsThankYouPage { get; set; } } I am not sure how to sent the LogInRequest parameter using Postman. anything I try it is not hitting the breakpoi
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.