Esempio n. 1
0
 public int Save(JobML Job)
 {
     try
     {
         if (Job.Id == 0)
         {
             return(JobDAL.Save(Job));
         }
         else
         {
             return(JobDAL.Update(Job));
         }
     }
     catch (Exception ex)
     {
         throw new Exception(String.Format("{0}.Save: {1}", core, ex));
     }
 }