public Models.CreateManifestResponse CreateManifest(Models.CreateManifestRequest request) { Classes.AuthorizationConfig auth = Classes.AuthorizationConfig.Load(request.AuthorizationToken); if (auth == null) { return(new Models.CreateManifestResponse("Authorization failed for token " + request.AuthorizationToken)); } //here we can implement manifest submission, upload etc if needed //the request will contain all orderIds the customer is manifesting // in this specific example we simply output a dummy manifest reference return(new Models.CreateManifestResponse() { ManifestReference = Guid.NewGuid().ToString().Replace("-", "").Substring(0, 10).ToUpper() }); }
public ActionResult CreateManifest(Models.CreateManifestRequest dto) { return(Result(_userService.CreateManifest(dto))); }