예제 #1
0
        public int Save(SaveTestDownload savableObj)
        {
            var currDal = Mapper.Map <SaveTestDownload, TestDownloadsDal>(savableObj);

            if (savableObj.Id == default(int))
            {
                return(_repo.Insert(currDal));
            }

            _repo.Update(currDal);

            return(0);
        }
예제 #2
0
        public int Save(SaveTestRank savableObj)
        {
            TestRankDal _rankDal = Mapper.Map <SaveTestRank, TestRankDal>(savableObj);

            return(_repository.Insert(_rankDal));
        }