示例#1
0
        public void AddTest()
        {
            var dto = new GuideDto
            {
                Id          = Guid.NewGuid().ToString().Remove(2, 7),
                Name        = "jjjjjjjjjjjj",
                Mobile      = "15988888888",
                Certificate = "345334.url",
                Headpic     = "http://wwes.ssr"
            };

            Print(_guide.Add(dto));
        }
示例#2
0
 public ActionResult <int> Post([FromBody] GuideDto dto)
 {
     return(_guide.Add(dto));
 }