public string AddOrUpdateSelection(SelectionModel model) { var selection = new Selection { Id = model.Id, Cid = model.Cid, Label = model.Label, Odds = $"{model.FirstNum}/{model.SecondNum}", CreatedOn = model.CreatedOn, EndedOn = model.EndedOn }; var newId = tradingRepository.CreateOrUpdateSelection(selection); return(newId); }