Ejemplo n.º 1
0
        // Update Clan Info
        public static void Update(ClanInfo info)
        {
            if (info != null)
            {
                Info.MemberOfTheWeekId = info.MemberOfTheWeekId;
                info.Reason = info.Reason;
            }

            Write();
        }
Ejemplo n.º 2
0
 public static void Read()
 {
     string path = HttpContext.Current.Server.MapPath("~/Content/Data/ClanInfo.csv");
     IEnumerable<ClanInfo> info = Context.Read<ClanInfo>(path, FileDescription);
     Info = info.First();
 }