Example #1
0
        public IActionResult getInNew([FromBody] NewUser newUser)
        {
            SaiHashing sai = new SaiHashing();

            newUser.pd = sai.Hashing(newUser.pd);
            var result = new { success = true, user = newUser };

            return(Json(result));
        }
Example #2
0
        public IActionResult getInExisting([FromBody] ExistingUser existingUser)
        {
            SaiHashing sai = new SaiHashing();

            existingUser.epd = sai.Hashing(existingUser.epd);
            var result = new { success = true, user = existingUser };

            return(Json(result));
        }