Beispiel #1
0
        public IActionResult CreateBoookmark(string slug)
        {
            var identityID = User.GetIdentityID();

            var bookmark = _bookmarkService.Create(slug, identityID);

            return(Ok(_mapper.Map <BookmarkVM>(bookmark)));
        }
 public IActionResult Post([FromBody] Bookmark authorization)
 {
     try
     {
         return(Created(string.Empty, _bookmarkService.Create(authorization)));
     }
     catch (Exception e)
     {
         return(BadRequest(e));
     }
 }
Beispiel #3
0
 public async Task Create([FromBody] Bookmark bookmark)
 {
     await _service.Create(bookmark);
 }