Exemplo n.º 1
0
 partial void DeleteJob(Job instance);
Exemplo n.º 2
0
 partial void InsertJob(Job instance);
Exemplo n.º 3
0
 partial void UpdateJob(Job instance);
        public bool CreateJob(JobDAO jb)
        {
            Job job = new Job
            {
                Title = jb.Title,
            };

            using (AESDatabaseDataContext db = new AESDatabaseDataContext())
            {
                db.Jobs.InsertOnSubmit(job);
                try
                {
                    db.SubmitChanges();
                }
                catch (Exception e)
                {
                    throw new FaultException<KaskServiceException>(new KaskServiceException(), new FaultReason(e.Message));
                }
            }

            return true;
        }