示例#1
0
        public IHttpActionResult Put(int id, trxDataOrganisasiForm myData)
        {
            trxDataOrganisasi orgTemp = new trxDataOrganisasi();

            orgTemp.InjectFrom(myData);
            _repository.Put(id, orgTemp);
            return(StatusCode(HttpStatusCode.NoContent));
        }
示例#2
0
        public IHttpActionResult Post(trxDataOrganisasiForm myData)
        {
            trxDataOrganisasi orgTemp = new trxDataOrganisasi();

            orgTemp.InjectFrom(myData);
            _repository.Post(orgTemp);
            return(Ok(orgTemp));
        }