예제 #1
0
        public AvatarType GetAvatarById(int Id)
        {
            var avatarTypeLst = DBinitializer.GetAvatarTypes();
            var avatarType    = avatarTypeLst.Find(x => x.Id == Id);

            return(avatarType);
        }
예제 #2
0
        public AvatarType Create(AvatarType avatarType)
        {
            avatarType.Id = DBinitializer.GetNextIdType();
            var list = DBinitializer.GetAvatarTypes();

            list.Add(avatarType);
            return(avatarType);
        }
예제 #3
0
 public IEnumerable <AvatarType> ReadAllAvatars()
 {
     return(DBinitializer.GetAvatarTypes());
     //return _avatarTypeLst;
 }
예제 #4
0
        private List <AvatarType> GetAvatarTypes()
        {
            var avatarTypeLst = DBinitializer.GetAvatarTypes();

            return(avatarTypeLst);
        }