コード例 #1
0
ファイル: DataEventoServices.cs プロジェクト: marcosalpha3/jw
        private DataEvento BuscarPorId(ref IUnitOfWork unitOfWork, int id)
        {
            var ret = _repository.FindById(ref unitOfWork, id);

            if (ret == null)
            {
                ret = new DataEvento();
                ret.AddNotification(nameof(ret.Codigo), string.Format(Errors.RegisterNotFound, id));
                unitOfWork.Rollback();
            }
            return(ret);
        }