Ejemplo n.º 1
0
        /// <summary>
        /// Delete Checkpoint by id
        /// </summary>
        /// <param name="id">Checkpoint id</param>
        /// <returns>true if the Checkpoint is deleted successfully</returns>
        public IHttpActionResult Delete(int id)
        {
            try
            {
                // delete
                log.Debug("_checkpointService.DeleteCheckpoint - checkpointId: " + id + " ");

                _checkpointService.DeleteCheckpoint(id);

                log.Debug("result: 'success'");

                //return JsonConvert.SerializeObject(true);
                return(Ok(true));
            }
            catch (Exception e)
            {
                // error
                log.Error(e.ToString());

                throw;
            }
        }
Ejemplo n.º 2
0
 public IActionResult DeleteCheckpoint(int checkpointId)
 {
     return(Ok(_checkpointService.DeleteCheckpoint(checkpointId)));
 }