public async Task <ActionResult> AddBeisl([FromBody] BeislDto beisl) { var _beisl = await _beislService.AddBeislAsync(beisl); return(Created($"{HttpContext.Request.Path}/{_beisl.Id}", _beisl)); }
public async Task <BeislDto> AddOrUpdateBeislAsync(BeislDto beisl) { var _beisl = await _beislRepository.AddOrUpdateAsync(_mapper.Map <BeislDto, BeislEntity>(beisl)); return(_mapper.Map <BeislEntity, BeislDto>(_beisl)); }