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

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

            return(GetTag(inserted.Id));
        }