Esempio n. 1
0
 public async Task <IActionResult> Post([FromBody] InputMapping data)
 {
     return(await ValidateCreateInputMapping(data)
            .MapT(async d =>
     {
         await _inputMappingRepository.AddAsync(d);
         return d;
     })
            .ToActionResultAsync());
 }
 public async Task <IActionResult> Post([FromBody] MapperSourceText data)
 {
     return(await ValidateCreateMapperSourceText(data)
            .MapT(async d =>
     {
         await _mapperSourceTextRepository.AddAsync(d);
         return d;
     })
            .ToActionResultAsync());
 }