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)); }
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)); }