public async Task DeativateAsync(EntityDto <long> input) { var @author = await _authorManager.GetAsync(input.Id); @author.IsDeactivated = [email protected]; await _authorManager.UpdateAsync(@author); }
public async Task <AuthorOutputDto> Get(int id) { AuthorOutputDto author = new AuthorOutputDto(); var result = await _authorManager.GetAsync(id); author = _mapper.Map <AuthorOutputDto>(result); return(author); }