Esempio n. 1
0
        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);
        }