Пример #1
0
 // PUT api/<controller>/5
 /// <summary>
 /// Puts the specified identifier.
 /// </summary>
 /// <param name="id">The identifier.</param>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 /// <exception cref="HttpResponseException"></exception>
 public EmpBudgetSchedule Put(string id, [FromBody] EmpBudgetSchedule value)
 {
     return(EmpBudgetScheduleManager.UpdateItem(value));
 }
Пример #2
0
 // POST api/<controller>
 /// <summary>
 /// Posts the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public EmpBudgetSchedule Post([FromBody] EmpBudgetSchedule value)
 {
     return(EmpBudgetScheduleManager.AddItem(value));
 }