public void UpdateBOQ(BOQ bOQ) { var original = bOQRepository.GetById(b => b.DesignId == bOQ.DesignId); bOQRepository.Update(original, bOQ.AutoMapObject <BOQ, DesignBOQ>()); }
public int CreateBOQ(BOQ bOQ) { var res = bOQRepository.Insert(bOQ.AutoMapObject <BOQ, DesignBOQ>()); return(res.DesignId); }