コード例 #1
0
        public IHttpActionResult DeleteTaskItem(long id)
        {
            var currentUserId = GetCurrentUserId();
            var nullCheck     = _bl.GetTaskItem(currentUserId, id);

            if (nullCheck == null)
            {
                return(NotFound());
            }

            _bl.DeleteTaskItem(currentUserId, id);

            return(Ok());
        }