public bool Post([FromBody] Login Login) { try { if (dataAccess.LoadData(Login).Password == Login.HashPassword()) { return(true); } else { return(false); } } catch (Exception ex) { // Log error return(false); } }