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); }
public int Save(SaveTestRank savableObj) { TestRankDal _rankDal = Mapper.Map <SaveTestRank, TestRankDal>(savableObj); return(_repository.Insert(_rankDal)); }