public DescriptionModuleModel GetById(long tid) { var result = _unitOfWork.DescriptionRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.DescriptionModuleMapper(result); return(resultModel); } return(null); }
public IEnumerable <DescriptionModuleModel> GetAll() { var results = _unitOfWork.DescriptionRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.DescriptionModuleMapperList(results); return(resultsmodel); } return(null); }
public CouponEntity GetById(long tid) { var result = _unitOfWork.CouponRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.CouponMapper(result); return(resultModel); } return(null); }
public IEnumerable <ProjectDetailEntity> GetAll() { var results = _unitOfWork.ProjectDetailRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.ProjectDetailMapperList(results); return(resultsmodel); } return(null); }
public BlogModuleModel GetByBlogNameKeyword(string keywords) { var result = _unitOfWork.BlogsRepository.Get(a => a.blogkeywords == keywords); if (result != null) { var resultModel = GsMapperConfig.BlogEntityMapper(result); return(resultModel); } return(null); }
public IEnumerable <DbManagerEntity> GetByType(string type) { var results = _unitOfWork.ManagerRepository.GetMany(t => t.mrowtype == type).ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.DbManagerEntityMapperList(results); return(resultsmodel); } return(null); }
public IEnumerable <ClientRecordModel> GetAll() { var results = _unitOfWork.ClientRecordRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.ClientRecordMapperList(results); return(resultsmodel); } return(null); }
public IEnumerable <TagsModel> GetAllByOther(string[] otherid) { var results = _unitOfWork.TagsRepository.GetMany(a => otherid.Contains(a.tagid.ToString())).ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.TagsModelEntityMapperList(results); return(resultsmodel); } return(null); }
public ClientRecordModel GetByMobilePassword(string mobileno, string usrpassword) { var result = _unitOfWork.ClientRecordRepository.Get(m => (m.contactmobile == mobileno && m.upassword == usrpassword + salt)); if (result != null) { var resultModel = GsMapperConfig.ClientRecordMapper(result); return(resultModel); } return(null); }
public ClientRecordModel GetById(long tid) { var result = _unitOfWork.ClientRecordRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.ClientRecordMapper(result); return(resultModel); } return(null); }
public ClientRecordModel GetByMobile(string mobileno) { var result = _unitOfWork.ClientRecordRepository.Get(m => m.contactmobile == mobileno); if (result != null) { var resultModel = GsMapperConfig.ClientRecordMapper(result); return(resultModel); } return(null); }
public IEnumerable <ClientComments> GetAllByOther(long otherid) { var results = _unitOfWork.ClientCommentRepository.GetMany(i => i.userfkid == otherid).ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.ClientCommentMapperList(results); return(resultsmodel); } return(null); }
public IEnumerable <CouponEntity> GetAll() { var results = _unitOfWork.CouponRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.CouponMapperList(results); return(resultsmodel); } return(null); }
public TitleMasterModel GetById(long tid) { var result = _unitOfWork.TitleMasterRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.TitleMasterMapper(result); return(resultModel); } return(null); }
//public DbManagerEntity GetById(string tid) //{ // var result = _unitOfWork.ManagerRepository.Get(t=>t.mguid==tid); // if (result != null) // { // var resultModel = GsMapperConfig.DbManagerEntityMapper(result); // return resultModel; // } // return null; //} public DbManagerEntity GetById(long tid) { var result = _unitOfWork.ManagerRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.DbManagerEntityMapper(result); return(resultModel); } return(null); }
public IEnumerable <TitleMasterModel> GetAll() { var results = _unitOfWork.TitleMasterRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.TitleMasterMapperList(results); return(resultsmodel); } return(null); }
public IEnumerable <DbManagerEntity> GetAll() { var results = _unitOfWork.ManagerRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.DbManagerEntityMapperList(results); return(resultsmodel); } return(null); }
public TagsModel GetByName(string tid) { var result = _unitOfWork.TagsRepository.Get(a => a.tagname == tid); if (result != null) { var resultModel = GsMapperConfig.TagsModelEntityMapper(result); return(resultModel); } return(null); }
public ProjectDetailEntity GetById(long tid) { var result = _unitOfWork.ProjectDetailRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.ProjectDetailMapper(result); return(resultModel); } return(null); }
public IEnumerable <BlogModuleModel> GetAll() { var results = _unitOfWork.BlogsRepository.GetAll().ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.BlogEntityMapperList(results); return(resultsmodel); } return(null); }
public BlogModuleModel GetById(long tid) { var result = _unitOfWork.BlogsRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.BlogEntityMapper(result); return(resultModel); } return(null); }
public CouponEntity GetByCouponCode(string couponcode) { var result = _unitOfWork.CouponRepository.Get(c => (c.couponcode == couponcode && c.cblocked == false)); if (result != null) { var resultModel = GsMapperConfig.CouponMapper(result); return(resultModel); } return(null); }
public IEnumerable <BlogModuleModel> GetAllByOther(string[] otherid) { var results = _unitOfWork.BlogsRepository.GetMany(a => a.blogtags.Contains(otherid.ToString())).ToList(); //var results = _unitOfWork.BlogsRepository.GetMany(a => otherid.Contains(a.blogtags.ToString())).ToList(); if (results.Any()) { var resultsmodel = GsMapperConfig.BlogEntityMapperList(results); return(resultsmodel); } return(null); }