public async Task <bool> UpdateAsync(InkUpdateDto model) { var ink = _mapper.Map <Ink>(model); _repoInk.Update(ink); return(await _repoInk.SaveAll()); }
public async Task <IActionResult> Update(InkUpdateDto update) { if (await _inkService.UpdateAsync(update)) { return(NoContent()); } return(BadRequest($"Updating Kind {update.ID} failed on save")); }