public void Update(ServiceJob updServiceJob) { ServiceJob curentJob = this._db.ServiceJobs.FirstOrDefault( r => r.JobID == updServiceJob.JobID); curentJob.Status = updServiceJob.Status; curentJob.Comment = updServiceJob.Status; this.Save(); if (curentJob.Comment != string.Empty) SendSms(); }
public void UpdateServiceJob(ServiceJob newJob) { _db.Update(newJob); }