public void PrizeComplete(PrizeModel prize) { //Get back from the form a PrizeModel selectedPrizes.Add(prize); WireUpLists(); }
public void PrizeComplete(PrizeModel model) { selectedPrizes.Add(model); WireUpList(); }
// TODO - Make CreatePrize method save to text file /// <summary> /// Saves a new prize to the text file /// </summary> /// <param name="model">The prize information</param> /// <returns>The prize information, including the unique identifier</returns> public PrizeModel CreatePrize(PrizeModel model) { model.Id = 1; return(model); }
public void PrizeComplete(PrizeModel prize) { selectedPrizes.Add(prize); WireUpLists(); }
// TODO - Make the CreatePrize method actually save to the databasw /// <summary> /// Saves the new Prize to the database /// </summary> /// <param name="model">The Prize info</param> /// <returns>The Prize information, including the unique Identifier</returns> public PrizeModel CreatePrize(PrizeModel model) { using (IDbConnection connection = new System.Data.SqlClient.SqlConnector(GlobalConfig.CnnString("Tournaments"))) { } }
public void PrizeComplete(PrizeModel model) { selectedPrizes.Add(model); InitializeList(); }
public void PrizeComplete(PrizeModel model) { // Take the PrizeModel and put it onto our list of selected prizes selectedPrizes.Add(model); WireUpLists(); }
public void DeletePrize(PrizeModel model) { throw new NotImplementedException(); }
public IActionResult Prize([FromBody] PrizeModel prize) { _adminService.AddOrUpdatePrize(prize); return(Ok("The prize was added/updated.")); }
public void PrizeComplete(PrizeModel model) { selectedPrizes.Add(model); RefreshLists(); }
//TO DO - Wire up the CreatePrize for text files public PrizeModel CreatePrize(PrizeModel model) { throw new NotImplementedException(); }
public void PrizeComplete(PrizeModel model) { // Get back a PrizeModel from the window // Take the PrizeModel and put it into the observable collection of selected prizes SelectedPrizes.Add(model); }
public void PrizeComplete(PrizeModel model) { selectedPrizes.Add(model); prizesListBox.Refresh(); }
public PrizeModel CreatePrize(PrizeModel model) { // TODO - Create method to save new prize in db. model.Id = 1; return(model); }
public void PrizeComplete(PrizeModel model) { // Take the PrizeModel and put it in the selectedPrizes box selectedPrizes.Add(model); WireUpLists(); }
public PrizeModel CreatePrize(PrizeModel model) { return(model); }