private Soucast Modify(EventSoucastUpdated evt, Soucast item) { item.EventGuid = evt.EventId; item.Generation = evt.Generation; item.EventGuid = evt.EventId; item.SoucastId = evt.SoucastId; item.ImportedId = evt.ImportedId; item.ParentId = evt.ParentId; item.Nazev = evt.Nazev; item.Zkratka = evt.Zkratka; return(item); }
public async Task <IActionResult> Update([FromForm] Soucast model) { var command = new CommandSoucastUpdate() { Nazev = model.Nazev, ParentId = model.ParentId, SoucastId = model.SoucastId, Zkratka = model.Zkratka }; await client.UpdateAsync(command); return(RedirectToAction("Index")); }
private Soucast Create(EventSoucastCreated evt) { var model = new Soucast() { Generation = evt.Generation, EventGuid = evt.EventId, SoucastId = evt.SoucastId, ImportedId = evt.ImportedId, ParentId = evt.ParentId, Nazev = evt.Nazev, Zkratka = evt.Zkratka }; return(model); }