예제 #1
0
        public async Task <bool> UpdateAsync(InkUpdateDto model)
        {
            var ink = _mapper.Map <Ink>(model);

            _repoInk.Update(ink);
            return(await _repoInk.SaveAll());
        }
예제 #2
0
 public async Task <IActionResult> Update(InkUpdateDto update)
 {
     if (await _inkService.UpdateAsync(update))
     {
         return(NoContent());
     }
     return(BadRequest($"Updating Kind {update.ID} failed on save"));
 }