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