예제 #1
0
        public IHttpActionResult PutExpire(int id, IsExpired isExpiredValue)
        {
            bool isSuccess = jobs.ExpireActiveJob(id, isExpiredValue);

            return(isSuccess ? (IHttpActionResult)Ok() : (IHttpActionResult)NotFound()); // return not found if no job is found for the given job id
        }