public IHttpActionResult GetAllMasterOrders([FromBody] Filter filter) { var getter = new FBAGetter(); if (filter == null) { return(Ok(getter.GetAllMasterOrders())); } else { return(Ok(getter.GetFilteredMasterOrder(filter))); } }
public IHttpActionResult GetCSRFilteredOrders([FromUri] string orderType, [FromBody] Filter filter) { var getter = new FBAGetter(); if (orderType == FBAOrderType.MasterOrder) { return(Ok(getter.GetFilteredMasterOrder(filter))); } else { return(Ok(getter.GetFilteredShipOrder(filter))); } }