Skip to content

Commit

Permalink
2.17.14
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarincev committed Jun 23, 2018
1 parent 3752478 commit 55fcccd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CommonAssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
[assembly: AssemblyProduct("Virto Commerce Order Module")]
[assembly: AssemblyCopyright("Copyright © VirtoCommerce 2011-2018")]

[assembly: AssemblyFileVersion("2.17.13.0")]
[assembly: AssemblyVersion("2.17.13.0")]
[assembly: AssemblyFileVersion("2.17.14.0")]
[assembly: AssemblyVersion("2.17.14.0")]

#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,15 @@ public IHttpActionResult Search(CustomerOrderSearchCriteria criteria)
/// </summary>
/// <remarks>Return a single customer order with all nested documents or null if order was not found</remarks>
/// <param name="number">customer order number</param>
/// <param name="respGroup"></param>
[HttpGet]
[Route("number/{number}")]
[ResponseType(typeof(CustomerOrder))]
public IHttpActionResult GetByNumber(string number)
public IHttpActionResult GetByNumber(string number, [FromUri] string respGroup = null)
{
var searchCriteria = AbstractTypeFactory<CustomerOrderSearchCriteria>.TryCreateInstance();
searchCriteria.Number = number;
searchCriteria.ResponseGroup = CustomerOrderResponseGroup.Full.ToString();
searchCriteria.ResponseGroup = respGroup;

var result = _searchService.SearchCustomerOrders(searchCriteria);

Expand All @@ -129,13 +130,13 @@ public IHttpActionResult GetByNumber(string number)
/// </summary>
/// <remarks>Return a single customer order with all nested documents or null if order was not found</remarks>
/// <param name="id">customer order id</param>
/// <param name="responseGroup"></param>
/// <param name="respGroup"></param>
[HttpGet]
[Route("{id}")]
[ResponseType(typeof(CustomerOrder))]
public IHttpActionResult GetById(string id, string responseGroup = null)
public IHttpActionResult GetById(string id, [FromUri] string respGroup = null)
{
var retVal = _customerOrderService.GetByIds(new[] { id }, responseGroup ?? CustomerOrderResponseGroup.Full.ToString()).FirstOrDefault();
var retVal = _customerOrderService.GetByIds(new[] { id }, respGroup).FirstOrDefault();
if (retVal == null)
{
return NotFound();
Expand Down
2 changes: 1 addition & 1 deletion VirtoCommerce.OrderModule.Web/module.manifest
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<module>
<id>VirtoCommerce.Orders</id>
<version>2.17.13</version>
<version>2.17.14</version>
<platformVersion>2.13.24</platformVersion>
<dependencies>
<dependency id="VirtoCommerce.Core" version="2.25.1" />
Expand Down

0 comments on commit 55fcccd

Please sign in to comment.