示例#1
0
        public void Post([FromBody] HugModel model)
        {
            var newHug = new Hug
            {
                From    = model.From,
                To      = model.To,
                Reason  = model.Reason,
                Created = model.Created,
                Id      = model.Id
            };

            _dbManeger.AddNewModel(newHug);
        }