public async Task <IActionResult> AddXp(AddXp model) { if (!ModelState.IsValid) { return(Redirect("/")); } var xp = new MyXp { Title = model.Title, value = model.Value }; await _services.AddXp(xp); return(Redirect("/")); }
public void NotifyAddXp(IChampion champion, float experience) { var xp = new AddXp(champion, experience); _packetHandlerManager.BroadcastPacket(xp, Channel.CHL_S2C); }