Ejemplo n.º 1
0
        /// <summary>
        /// Puts the specified identifier.
        /// </summary>
        /// <param name="id">The identifier.</param>
        /// <param name="value">The value.</param>
        /// <returns></returns>
        public IHttpActionResult Put(int id, [FromBody] HelpDesk_TaskStatus_vm value)
        {
            var result = _helpDeskTaskStatusManager.EditTaskStatusById(id, value);

            if (result == 0)
            {
                return(NotFound()); // Returns a NotFoundResult
            }
            return(Ok(result));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Puts the specified identifier.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public int Put(int id, [FromBody] HelpDesk_TaskStatus_vm value)
 {
     _logger.Info("Editing the task with id " + id);
     return(_helpDeskTaskStatusManager.EditTaskStatusById(id, value));
 }