public string AddOrUpdateContext(ContextModel model) { var newId = tradingRepository.AddOrUpdateContext( new Context { Id = model.Id, CatId = model.CatId, Label = model.Label, CreatedOn = model.CreatedOn, EndedOn = model.EndedOn }); return(newId); }
public string AddOrUpdateContext(ContextModel model) { var newId = tradingRepository.AddOrUpdateContext( new Context { Id = model.Id, CatId = model.CatId, Label = model.Label, CreatedOn = model.CreatedOn, EndedOn = model.EndedOn }); return(newId); }