Example #1
0
        public async Task <Peripheral> DeleteAsync(Guid id)
        {
            var getEntity = await _repository.GetByIdAsync <Peripheral>(id);

            return(await _repository.DeleteAsync(getEntity));
        }
Example #2
0
        public async Task <Peripheral> GetPeripheralByIdAsync(long?id)
        {
            var entity = await peripheralRepository.GetByIdAsync(id);

            return(mapper.Map <Peripheral>(entity));
        }