Esempio n. 1
0
 // DELETE api/<controller>/5
 /// <summary>
 /// Deletes the specified identifier.
 /// </summary>
 /// <param name="id">The identifier.</param>
 public void Delete(String id)
 {
     EmpTransManager.DeleteItem(id);
 }
Esempio n. 2
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 EmpTrans Put(string id, [FromBody] EmpTrans value)
 {
     return(EmpTransManager.UpdateItem(value));
 }
Esempio n. 3
0
 // POST api/<controller>
 /// <summary>
 /// Posts the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public EmpTrans Post([FromBody] EmpTrans value)
 {
     return(EmpTransManager.AddItem(value));
 }
Esempio n. 4
0
 // GET api/<controller>/5
 /// <summary>
 /// Gets the specified COM group identifier.
 /// </summary>
 /// <param name="EmpTransId">The COM group identifier.</param>
 /// <returns></returns>
 public EmpTrans Get(String TranCode)
 {
     return(EmpTransManager.GetItemByID(TranCode));
 }
Esempio n. 5
0
 public EmpTransCollection GetbyUser(string usr)
 {
     return(EmpTransManager.GetbyUser(usr));
 }
Esempio n. 6
0
 // GET api/<controller>
 /// <summary>
 /// Gets this instance.
 /// </summary>
 /// <returns></returns>
 public EmpTransCollection Get()
 {
     return(EmpTransManager.GetAllItem());
 }