73 lines
2.2 KiB
C#
73 lines
2.2 KiB
C#
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
|
|
{
|
|
/// <summary>
|
|
/// This controller contain apis, related to Mobile users
|
|
/// </summary>
|
|
public class LogOnController : ApiController
|
|
{
|
|
#region Global Variable
|
|
|
|
/// <summary>
|
|
/// making object of LoggingUtility class available to this class
|
|
/// </summary>
|
|
LoggingUtility objLog = new LoggingUtility();
|
|
|
|
/// <summary>
|
|
/// making the data-log file path available to this class
|
|
/// </summary>
|
|
string path = HttpContext.Current.Server.MapPath(ConfigurationManager.AppSettings["PathLog"]);
|
|
|
|
/// <summary>
|
|
/// making data log file path available to this class
|
|
/// </summary>
|
|
string logtf = (ConfigurationManager.AppSettings["Log"]);
|
|
|
|
/// <summary>
|
|
/// making error log file path available to this class
|
|
/// </summary>
|
|
string errorlogtf = (ConfigurationManager.AppSettings["ErrorLog"]);
|
|
|
|
AuthService objAuthService = new AuthService();
|
|
#endregion
|
|
|
|
|
|
#region APIs
|
|
|
|
/// <summary>
|
|
/// 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
|
|
/// </summary>
|
|
/// <param name="model">required input parameters for ticket/vehicle/customer etc</param>
|
|
/// <returns>status and data</returns>
|
|
public void Post([FromBody] LogonModel model)
|
|
{
|
|
bool islogin = objAuthService.Authenticate(model.Username, model.Password);
|
|
}
|
|
#endregion
|
|
}
|
|
} |