Пример #1
0
        public AuthUser AuthorizeUser([FromBody] JObject Data)
        {
            if (Data == null)
            {
                return((AuthUser)null);
            }
            Dictionary <string, string> data = Data.ToObject <Dictionary <string, string> >();

            //[FromBody]string UserName, [FromBody]string Password
            //dynamic data = Data;
            return(_businessInstance.AuthorizeUser(data["UserName"], data["Password"]));
        }