public IHttpActionResult Put(int id, trxRekananDocument myData) { trxRekananDocument rekDocTemp = new trxRekananDocument(); rekDocTemp.InjectFrom(myData); _repository.Put(id, rekDocTemp); return(StatusCode(HttpStatusCode.NoContent)); }
public IHttpActionResult Post(trxRekananDocument myData) { trxRekananDocument rekDocTemp = new trxRekananDocument(); rekDocTemp.InjectFrom(myData); _repository.Post(rekDocTemp); return(Ok(rekDocTemp)); }