コード例 #1
0
        public IHttpActionResult UpdateLike(LikeDto dto)
        {
            if (service.UpdateLike(dto, User.Identity.GetUserId <int>()))
            {
                return(Ok());
            }
            service.AddLike(dto, User.Identity.GetUserId <int>());
            string location = Request.RequestUri + "/";

            return(Created(location, ""));
        }