예제 #1
0
        public async Task DeleteGoal(Guid id)
        {
            try
            {
                var goal = await _repository.GetById(id);

                _repository.Remove(goal);
                await _repository.SaveChanges();
            }
            catch (DBConcurrencyException e)
            {
                throw e;
            }
            catch (Exception e)
            {
                throw e;
            }
        }