Example #1
0
        public StopDto Create(Guid userId, Guid groupId, string problem)
        {
            this.unitOfWork.BeginTransaction();

            StopDto stopDto = Mapper.Map <StopDto>(stopDomainService.Create(groupId, problem, userId));

            this.unitOfWork.Commit();

            return(stopDto);
        }
Example #2
0
        public StopDto ProblemResolved(Guid userId, Guid stopId)
        {
            this.unitOfWork.BeginTransaction();

            Stop stop = this.stopRepo.FindById(stopId);

            stop.ProblemResolved(userId);

            StopDto stopDto = Mapper.Map <StopDto>(stop);

            this.unitOfWork.Commit();

            return(stopDto);
        }