public static string GetNewEncryptedPassword(string password) { using (IndicoEntities objContext = new IndicoEntities()) { var alParams = new ArrayList(); alParams.Add(password); return(objContext.GetEncryptedPassword(password).ToList()[0].RetVal); } }