public async Task <IServiceResponse <bool> > AddManifestManagement(ManifestDTO manifestManagement) { return(await HandleApiOperationAsync(async() => { await _service.AddManifest(manifestManagement); return new ServiceResponse <bool>(true); })); }
public IActionResult Add([FromBody] Manifest manifest) { manifest = _manifestService.AddManifest(manifest); return(CreatedAtRoute(new { ID = manifest.ID }, manifest)); }