Esempio n. 1
0
        public static string GetUserId(string employeeId)
        {
            BuildQuery qb = new BuildQuery(ConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());

            qb.SetInParam("@EmployeeId", Guid.Parse(employeeId), SqlDbType.UniqueIdentifier);
            string id = qb.ExecuteScalar("spGetUserId", CommandType.StoredProcedure).ToString();

            return(id);
        }