Exemplo n.º 1
0
        /// <summary>
        /// FUnction to get lookUp collection name by Id
        /// </summary>
        /// <param name="id">lookUp CollectionId</param>
        /// <returns>LookupDto object</returns>
        public new SkillSmart.Dto.LookupDto GetById(string id)
        {
            LookupEntity dbObj = base.GetById(id);

            SkillSmart.Dto.LookupDto seeker = MapperUtilities.MapToViewModel <SkillSmartMongoDA.Entities.LookupEntity, SkillSmart.Dto.LookupDto>(dbObj);
            return(seeker);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Function to get all details of lookup table
        /// </summary>
        /// <returns>object of lookup collection</returns>
        public IEnumerable <SkillSmart.Dto.LookupDto> GetAll()
        {
            var DropList = this.MongoCollection.FindAllAs <LookupEntity>();

            List <SkillSmart.Dto.LookupDto> listCursor = new List <SkillSmart.Dto.LookupDto>();

            foreach (LookupEntity list in DropList)
            {
                SkillSmart.Dto.LookupDto listObj = MapperUtilities.MapToViewModel <SkillSmartMongoDA.Entities.LookupEntity, SkillSmart.Dto.LookupDto>(list);
                listCursor.Add(listObj);
            }
            return(listCursor);
        }
Exemplo n.º 3
0
 public void Delete(SkillSmart.Dto.LookupDto entity)
 {
 }
Exemplo n.º 4
0
 public void Update(SkillSmart.Dto.LookupDto entity)
 {
 }
Exemplo n.º 5
0
        /// <summary>
        /// Function to create a collection for lookup
        /// </summary>
        /// <param name="entity">lookup object</param>
        public void Create(SkillSmart.Dto.LookupDto entity)
        {
            LookupEntity seeker = MapperUtilities.MapToDomainModel <SkillSmart.Dto.LookupDto, SkillSmartMongoDA.Entities.LookupEntity>(entity);

            base.Create(seeker);
        }