using LoggingHelper;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web;
using System.Web.Http;
using VECV_WebApi.Common;
using VECV_WebApi.Models.Activity;
using VECV_WebApi.Models.Customer;
using VECV_WebApi.Models.EmailServices;
using VECV_WebApi.Models.LogOn;
using VECV_WebApi.Models.Mobile;
using VECV_WebApi.Models.Ticket;
using VECV_WebApi.Models.User;
using VECV_WebApi.Models.Vehicle;
using VECV_WebApi.UserClient;
namespace VECV_WebApi.Controllers.LogOn
{
///
/// This controller contain apis, related to Mobile users
///
public class LogOnController : ApiController
{
#region Global Variable
///
/// making object of LoggingUtility class available to this class
///
LoggingUtility objLog = new LoggingUtility();
///
/// making the data-log file path available to this class
///
string path = HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["PathLog"]);
///
/// making data log file path available to this class
///
string logtf = (ConfigurationManager.AppSettings["Log"]);
///
/// making error log file path available to this class
///
string errorlogtf = (ConfigurationManager.AppSettings["ErrorLog"]);
AuthService objAuthService = new AuthService();
#endregion
#region APIs
///
/// Merging following 6 APIs result into one api :-
/// 1. Get Open/Close Ticket activities
/// 2. Get Customer Details
/// 3. Get Owner Details
/// 4. Get Ticket Details
/// 5. Get Escalation Levels
/// 6. Get Vehicle Details
///
/// required input parameters for ticket/vehicle/customer etc
/// status and data
public void Post([FromBody] LogonModel model)
{
bool islogin = objAuthService.Authenticate(model.Username, model.Password);
}
#endregion
}
}