public static void UpdateMemberWarPosition(string[] sortedPicks)
        {
            string idParsed = string.Empty;

            using (var dbContext = new HouseOfClansEntities())
            {
                for (short i = 0; i < sortedPicks.Length; i++)
                {
                    idParsed = sortedPicks[i].Replace(_clanWarPickSortedName, "");

                    ClanWarPick pick = new ClanWarPick()
                    {
                        id = int.Parse(idParsed),
                        clanMemberWarPosition = (short)(i + 1),
                        updatedOn = DateTime.Now
                    };

                    dbContext.ClanWarPicks.Attach(pick);
                    dbContext.Entry(pick).Property(p => p.clanMemberWarPosition).IsModified = true;
                    dbContext.Entry(pick).Property(p => p.updatedOn).IsModified = true;
                    dbContext.SaveChanges();
                }
            }
        }
        private static ClanWarPick ConvertViewToModel(ClanWarPickViewModel viewModel)
        {
            ClanWarPick model = new ClanWarPick();

            model.id = viewModel.Id ?? 0;
            model.clanWarId = viewModel.ClanWarId;
            model.clanMemberWarPosition = viewModel.ClanMemberWarPosition;
            model.clanUserId = viewModel.ClanUserId;
            model.pickVS = viewModel.PickVS;
            model.note = viewModel.Note;
            model.addedOn = viewModel.AddedOn;
            model.updatedOn = viewModel.UpdatedOn;

            return model;
        }