using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using RevampApi.App_Code.AppModel;
using RevampApi.Models;

namespace RevampApi
{
    /// <summary>
    /// Service controller manager
    /// </summary>
    public class CService
    {
        /// <summary>
        /// Check if vendor API is active/responding
        /// </summary>
        /// <returns></returns>
        public ServiceStatus IsVendorAPIActive(string strVendorID)
        {
            CVendorServiceFactory vndSrvFactory = new CVendorServiceFactory();
            CVendorService vndSrv = vndSrvFactory.CreateService(strVendorID);
            
            return vndSrv.IsActive();

            //ServiceStatus srv = new ServiceStatus();

            //srv = vndSrv.IsActive();

            //return srv;
        }
    }
}