Beispiel #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 EmpLoan Put(string id, [FromBody] EmpLoan value)
 {
     return(EmpLoanManager.UpdateItem(value));
 }
Beispiel #2
0
 // DELETE api/<controller>/5
 /// <summary>
 /// Deletes the specified identifier.
 /// </summary>
 /// <param name="id">The identifier.</param>
 public void Delete(string id)
 {
     EmpLoanManager.DeleteItem(id);
 }
Beispiel #3
0
 // POST api/<controller>
 /// <summary>
 /// Posts the specified value.
 /// </summary>
 /// <param name="value">The value.</param>
 /// <returns></returns>
 public EmpLoan Post([FromBody] EmpLoan value)
 {
     return(EmpLoanManager.AddItem(value));
 }
Beispiel #4
0
 // GET api/<controller>/5
 /// <summary>
 /// Gets the specified COM group identifier.
 /// </summary>
 /// <param name="EmpLoanId">The COM group identifier.</param>
 /// <returns></returns>
 public EmpLoan Get(string LoanCode)
 {
     return(EmpLoanManager.GetItemByID(LoanCode));
 }
Beispiel #5
0
 public EmpLoanCollection GetByUser(string UserName)
 {
     return(EmpLoanManager.GetAllItembyCreatedUser(UserName));
 }
Beispiel #6
0
 public LoanCalCollection GetCalEmpLoan(string CalCode)
 {
     return(EmpLoanManager.CalEmpLoan(EmpLoanManager.GetItemByID(CalCode)));
 }
Beispiel #7
0
 // GET api/<controller>
 /// <summary>
 /// Gets this instance.
 /// </summary>
 /// <returns></returns>
 public EmpLoanCollection Get()
 {
     return(EmpLoanManager.GetAllItem());
 }