public trxDataOrganisasiForm GetByRekananId(Guid rekananId)
        {
            trxDataOrganisasiForm NotarisSingle = new trxDataOrganisasiForm();
            trxDataOrganisasi     notTemp       = new trxDataOrganisasi();

            notTemp = (trxDataOrganisasi)ctx.trxDataOrganisasis.First(a => a.IdRekanan == rekananId);
            NotarisSingle.InjectFrom(notTemp);
            return(NotarisSingle);
        }
Esempio n. 2
0
        public IHttpActionResult Get(int id)
        {
            trxDataOrganisasi     orgTemp   = new trxDataOrganisasi();
            trxDataOrganisasiForm orgSingle = new trxDataOrganisasiForm();

            if (id > 0)
            {
                orgTemp = _repository.Get(id);
                orgSingle.InjectFrom(orgTemp);
            }
            return(Ok(orgSingle));
        }