Пример #1
0
 public IActionResult Post([FromBody] TagModel model)
 {
     return(Post(_service.InsertTag, AuditNew(model)));
 }
Пример #2
0
        public TagModel UpdateTag(TagModel model)
        {
            var updated = _repo.Update(model);

            return(GetTag(updated.Id));
        }
Пример #3
0
 public IActionResult Put(int id, [FromBody] TagModel model)
 {
     return(Put(_service.UpdateTag, AuditExisting(model)));
 }
Пример #4
0
        public TagModel InsertTag(TagModel model)
        {
            var inserted = _repo.Insert(model);

            return(GetTag(inserted.Id));
        }