public VlozitHrace(ItemHrac hracik, int id, SpravaHracu spravaHracu) { InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; _domainPost = new DomainPost(); _domainKluby = new DomainKluby(); _domainHraci = new DomainHraci(); _id = id; form = spravaHracu; Hrac = hracik; Initialization = InitializeAsync(); }
public DetailHrace(ItemHrac hrac, SpravaHracu spravaHracu) { InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; _domainHraci = new DomainHraci(); _domainPost = new DomainPost(); _domainKluby = new DomainKluby(); Hrac = hrac; form = spravaHracu; Initialization = GetPostList(); LoadInfo(); }
private ItemHrac GetHrac(int id) { ItemHrac hraci = new ItemHrac(); foreach (var hrac in _hraci) { if (hrac.Hid == id) { return(hrac); } } return(hraci); }
public async Task DeleteHrac(ItemHrac hrac) { await Task.Run(() => _context.Where(h => h.Hid == hrac.Hid).Delete()); }
public async Task UpdateHrac(ItemHrac hrac) { await Task.Run(() => _context.Where(h => h.Hid == hrac.Hid).Update(hrac)); }
public async Task InsertHrac(ItemHrac hrac) { await Task.Run(() => _context.Insert(hrac)); }
public async Task DeleteHrac(ItemHrac hrac) { await _unitOfWork.Hraci.DeleteHrac(hrac); }
public async Task InsertHrac(ItemHrac hrac) { await _unitOfWork.Hraci.InsertHrac(hrac); }
public async Task UpdateHrac(ItemHrac hrac) { await _unitOfWork.Hraci.UpdateHrac(hrac); }