public AvatarType GetAvatarById(int Id) { var avatarTypeLst = DBinitializer.GetAvatarTypes(); var avatarType = avatarTypeLst.Find(x => x.Id == Id); return(avatarType); }
public AvatarType Create(AvatarType avatarType) { avatarType.Id = DBinitializer.GetNextIdType(); var list = DBinitializer.GetAvatarTypes(); list.Add(avatarType); return(avatarType); }
public IEnumerable <AvatarType> ReadAllAvatars() { return(DBinitializer.GetAvatarTypes()); //return _avatarTypeLst; }
private List <AvatarType> GetAvatarTypes() { var avatarTypeLst = DBinitializer.GetAvatarTypes(); return(avatarTypeLst); }