Ejemplo n.º 1
0
        public ActionResult UpdateUser([FromBody] JObject postbody)
        {
            int    UID        = Convert.ToInt32(postbody["UID"]);
            string FirstName  = postbody["FirstName"].ToString();
            string MiddleName = postbody["MiddleName"].ToString();
            string LastName   = postbody["LastName"].ToString();
            string UserID     = postbody["UserID"].ToString();
            string UserRole   = postbody["UserRole"].ToString();
            string Action     = postbody["Action"].ToString();
            var    UDU        = adal.EditUser(UID, FirstName, MiddleName, LastName, UserID, /* Password,*/ UserRole, Action);

            return(Ok(UDU));
        }