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)); }
public ActionResult <int> Post([FromBody] GuideDto dto) { return(_guide.Add(dto)); }