/// <summary>
        /// Connects to the BAL layer to get the authenticated user name
        /// </summary>
        /// <returns>The service.</returns>
        /// <param name="username">Username.</param>
        /// <param name="password">Password.</param>

        Model.AuthenticatedUser LoginToService(string username, string password)
        {
            LoginBAL loginBal = new LoginBAL(AppDelegate.DatabaseContext);

            Model.AuthenticatedUser user = loginBal.GetUserDetailsFromService(username, password);
            return(user);
        }