0 Replies - 427 Views - Last Post: 01 September 2019 - 07:30 PM Rate Topic: -----

#1 ahmedba   User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 220
  • Joined: 24-January 14

what link must generated if I do post url action ?

Posted 01 September 2019 - 07:30 PM

suppose i have action result as below :
public class Users
    {
        public string UserName { get; set; }
        public string Password { get; set; }
    }
public const string SecurityLogin = "Security";
        public static class Login
        {
            public const string UserLogin = SecurityLogin + "/Login/";

        }
 [HttpPost(Contracts.ApiRoutes.Login.UserLogin)]
        public  IActionResult PostUserLogins([FromBody]Users user)
        {
        }
suppose i n
eed to connect it from postman

what i will write on post man : Security/Login/User or what

and if i user post action like that :

[HttpPost(Contracts.ApiRoutes.Login.UserLogin)]
        public  IActionResult PostUserLogins([FromBody]string username ,[FromBody] string password)
        {
        }

what link will be : Security/Login/User/username/password or what i write

Is This A Good Question/Topic? 0
  • +

Page 1 of 1