public void Update(F6002 f6002)
 {
     using (var con = new SqlConnection(ConnectionString))
     {
         con.Query <int>(UpdateSQL, f6002).SingleOrDefault();
     }
 }
        public void Export(F6002 f6002, string fileName)
        {
            if (f6002 == null)
            {
                throw new NullReferenceException();
            }
            string xml = f6002.ToXML(_service.Societe, _service.Exercice);

            System.IO.File.WriteAllText(fileName, xml, Encoding.UTF8);
        }
 public void Save(F6002 f6002)
 {
     if (f6002.Id < 1)
     {
         _service.LiassService.F6002Create(f6002);
     }
     else
     {
         _service.LiassService.F6002Update(f6002);
     }
 }