public virtual void UpdateByIdOnSubmit(T entity) { int ID = (int)(entity.GetType().GetProperty("ID").GetValue(entity, null)); T existingEntity = GetSingleById(ID); ObjectMapper.CopyObject(entity, existingEntity, AuditInfo.Fields); }
public virtual TCostLineItem CopyCostLineItem(TCostLineItem costLine) { TCostLineItem copyOfCostLine = ObjectMapper.CopyObject <TCostLineItem>(costLine); return(copyOfCostLine); }