ChainStoreWeb.Pages.EmployeeAdder.GetLocalEmployeeName C# (CSharp) Method

GetLocalEmployeeName() private method

private GetLocalEmployeeName ( ) : string
return 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();
        }