Beispiel #1
0
        public IActionResult AddLink([FromBody] AddLinkInput input)
        {
            var linkData = new LinkData()
            {
                Link = input.Link
            };

            repository.Add(linkData);
            linkData.Hash = generator.Generate(linkData.Id);
            repository.Update(linkData);
            return(Ok(new { response = "Ok" }));
        }
Beispiel #2
0
 public ActionResult Add(AddLinkInput modle)
 {
     this.Service.Add(modle);
     modle.ShopID = this.CurrentSession.ShopID;
     return(this.SuccessMsg("添加成功"));
 }
Beispiel #3
0
 public void Add(AddLinkInput input)
 {
     this.InsertFromDto(input);
 }