コード例 #1
0
        public async Task <IServiceResponse <bool> > AddManifestManagement(ManifestDTO manifestManagement)
        {
            return(await HandleApiOperationAsync(async() => {
                await _service.AddManifest(manifestManagement);

                return new ServiceResponse <bool>(true);
            }));
        }
コード例 #2
0
        public IActionResult Add([FromBody] Manifest manifest)
        {
            manifest = _manifestService.AddManifest(manifest);

            return(CreatedAtRoute(new { ID = manifest.ID }, manifest));
        }