ChainStoreWeb.Pages.EmployeeAdder.GetLocalEmployeeName C# (CSharp) 메소드

GetLocalEmployeeName() 개인적인 메소드

private GetLocalEmployeeName ( ) : string
리턴 string
        private string GetLocalEmployeeName()
        {
            ListItem localEmployee;

            using (var clientContext = spContext.CreateUserClientContextForSPHost())
            {
                List localEmployeesList = clientContext.Web.Lists.GetByTitle("Local Employees");
                localEmployee = localEmployeesList.GetItemById(listItemID);
                clientContext.Load(localEmployee);
                clientContext.ExecuteQuery();
            }
            return localEmployee["Title"].ToString();
        }