// Update Clan Info public static void Update(ClanInfo info) { if (info != null) { Info.MemberOfTheWeekId = info.MemberOfTheWeekId; info.Reason = info.Reason; } Write(); }
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(); }