public void Update(DamageReport obj) { WE_T_SF_DAMAGE_RPT entity = MapObjectToEntity(obj); if (entity != null) { unitOfWork.DamageReportRepo.Update(entity); } }
public DamageReport MapEntityToObject(WE_T_SF_DAMAGE_RPT obj) { if (obj != null) { return(new DamageReport { WitnessAddress = obj.WITNESS_ADDR, WitnessCity = obj.WITNESS_CITY, WitnessName = obj.WITNESS_NAME, WitnessPhone = obj.WITNESS_PHONE, WitnessSequenceNumber = obj.WITNESS_SEQ, WitnessState = obj.WITNESS_STATE, WitnessZip = obj.WITNESS_ZIP, WorkRequest = obj.CD_WR }); } return(null); }
private void CreateDamageReport(WE_T_SF_DAMAGE_RPT entity) { unitOfWork.DamageReportRepo.Insert(entity); unitOfWork.Save(); }
public DamageReport GetByEntity(WE_T_SF_DAMAGE_RPT entity) { return(MapEntityToObject(entity)); }