//---------------------------------------------------------------------------------------------
// This file was AUTO-GENERATED by "Service Contracts" Xomega.Net generator.
//
// Manual CHANGES to this file WILL BE LOST when the code is regenerated.
//---------------------------------------------------------------------------------------------

using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Threading.Tasks;
using Xomega.Framework.Services;

namespace AdventureWorks.Services
{
    #region ISalesPersonService interface

    ///<summary>
    /// Sales representative current information.
    ///</summary>
    [ServiceContract]
    public interface ISalesPersonService
    {

        ///<summary>
        /// Reads a list of Sales Person objects based on the specified criteria.
        ///</summary>
        [OperationContract]
        Task<Output<ICollection<SalesPerson_ReadListOutput>>> ReadListAsync();

    }
    #endregion

    #region SalesPerson_ReadListOutput structure

    ///<summary>
    /// The output structure of operation ISalesPersonService.ReadListAsync.
    ///</summary>
    [DataContract]
    public class SalesPerson_ReadListOutput
    {
        
        [DataMember]
        public int BusinessEntityId { get; set; }
        
        ///<summary>
        /// Territory currently assigned to. Foreign key to SalesTerritory.SalesTerritoryID.
        ///</summary>
        [DataMember]
        public int? TerritoryId { get; set; }
        
        [DataMember]
        public string Name { get; set; }
        
        [DataMember]
        public bool IsCurrent { get; set; }
    }
    #endregion

}