You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using Business.Resend; using Common; using Common.Model; using JsonRx.AuthFilter; using JsonRx.Helper; using log4net; using System; using System.Web.Http;
namespace JsonRx.Api { /// <summary>
/// Api endpoints for transaction resend module.
/// </summary>
[RoutePrefix("api/v1/resend")] public class ResendController : ApiController { private IResendBusiness _resendBusiness; private static readonly ILog Log = LogManager.GetLogger(typeof(ResendController));
/// <summary>
/// </summary>
public ResendController() { }
/// <summary>
/// </summary>
public ResendController(IResendBusiness resendBusiness) { _resendBusiness = resendBusiness; }
/// <summary>
/// </summary>
/// <returns></returns>
[HttpPost] [TokenAuthentication] [Route("list")] public IHttpActionResult GetTransactionResendList(DateFilterParams search) { LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = Guid.NewGuid(); LogicalThreadContext.Properties[LoggerProperty.METHODNAME] = "GetTransactionResendList";
var id = Util.GetCustomerId(Request); JsonRxResponse res = _resendBusiness.GetResendLists(search, id); return Ok(res); }
/// <summary>
/// </summary>
/// <returns></returns>
[HttpPost] [TokenAuthentication] [Route("detail")] public IHttpActionResult GetTransactionSummary(DateFilterParams obj) { LogicalThreadContext.Properties[LoggerProperty.PROCESSID] = Guid.NewGuid(); LogicalThreadContext.Properties[LoggerProperty.METHODNAME] = "GetTransactionResendList"; JsonRxResponse res = _resendBusiness.GetTransactionSummary(obj.tranId); return Ok(res); } } }
|