// GET api/User public IQueryable <T3UsersLogin> GetT3UsersLogin() { IQueryable <T3UsersLogin> iRet = db.T3UsersLogin; foreach (T3UsersLogin item in iRet) { item.Password = L3CryptorEngine.Decrypt(item.Password); } return(iRet); }
public IHttpActionResult GetT3UsersLogin(string id) { T3UsersLogin t3userslogin = db.T3UsersLogin.Find(id); if (t3userslogin == null) { return(NotFound()); } t3userslogin.Password = L3CryptorEngine.Decrypt(t3userslogin.Password); return(Ok(t3userslogin)); }