public void Add(CashFolwEntityDTO DTO)
 {
     using (var container = new InventoryContainer())
     {
         AccCashFlowEntity gur = new AccCashFlowEntity();
         container.AccCashFlowEntities.AddObject((AccCashFlowEntity)DTOMapper.DTOObjectConverter(DTO, gur));
         container.SaveChanges();
     }
 }
 public void Edit(CashFolwEntityDTO DTO)
 {
     using (var container = new InventoryContainer())
     {
         var Comp = new AccCashFlowEntity();
         Comp            = container.AccCashFlowEntities.FirstOrDefault(o => o.CFEId.Equals(DTO.CFEId));
         Comp.CFEName    = DTO.CFEName;
         Comp.UpdateDate = DTO.UpdateDate;
         Comp.UpdateBy   = DTO.UpdateBy;
         Comp.Priority   = DTO.Priority;
         Comp            = (AccCashFlowEntity)DTOMapper.DTOObjectConverter(DTO, Comp);
         container.SaveChanges();
     }
 }