public void Create([FromBody] Module module) { if (!_validator.Validate(module).IsValid) { return; } _moduleAppService.Add(module); }
public async Task Add([FromBody] ModuleAddInput input) => await _moduleAppService.Add(input);
public void Create([FromBody] Module module) { if (!_validator.Validate(module).IsValid) { return; } _moduleAppService.Add(module); }
public async Task Add([FromBody] ModuleAddInput input) => await _moduleAppService.Add(input);