public IHttpActionResult GetByOperationById([FromUri] int masterOrderId, [FromUri] string operation)
        {
            if (operation == FBAOperation.Download)
            {
                var generator = new FBAExcelGenerator(@"D:\Template\Receipt-template.xlsx");

                var fullPath = generator.GenerateReceipt(masterOrderId);

                return(Ok(fullPath));
            }

            return(Ok("Invalid operation."));
        }
        public IHttpActionResult GetByOperation([FromUri] string grandNumber, [FromUri] string operation)
        {
            if (operation == FBAOperation.Download)
            {
                var masterOrderId = _context.FBAMasterOrders.SingleOrDefault(x => x.GrandNumber == grandNumber).Id;

                var generator = new FBAExcelGenerator(@"D:\Template\Receipt-template.xlsx");

                var fullPath = generator.GenerateReceipt(masterOrderId);

                return(Ok(fullPath));
            }

            return(Ok("Invalid operation."));
        }