/// <summary> /// Ziska data o skupine s danym ID, upravi je a ulozi zpet. /// </summary> /// <param name="id"></param> /// <param name="newData"></param> public void Edit(int id, Skupina newData) { Skupina oldData = this.GetSkupinaById(id); oldData.pes1name = newData.pes1name; oldData.pes2name = newData.pes2name; oldData.pes3name = newData.pes3name; oldData.pes1plemeno = newData.pes1plemeno; oldData.pes2plemeno = newData.pes2plemeno; oldData.pes3plemeno = newData.pes3plemeno; oldData.pes1barva = newData.pes1barva; oldData.pes2barva = newData.pes2barva; oldData.pes3barva = newData.pes3barva; }
/// <summary> /// Prida skupinu do DB /// </summary> /// <param name="newSkupina"></param> public void Add(Skupina newSkupina) { this.skupiny.Add(newSkupina); }