public async Task UpdateAsync(int groupId, string name) { var group = await _taskGroupRepository.GetAsync(groupId); group.Name = name; await _taskGroupRepository.UpdateAsync(group); }
public async Task <bool> UpdateAsync(TaskGroupPutDto entity) { var exists = await _repository.GetByIdAsync(entity.ID); if (exists == null) { return(false); } else { await _repository.UpdateAsync(mapper.Map <TaskGroup>(entity)); return(true); } }