public int SaveTask(JiraTask task) { if (task.ID != 0) { base.Update (task); return task.ID; } else { return base.Insert (task); } }
protected override void OnCreate(Bundle bundle) { base.OnCreate (bundle); // Set our view from the "main" layout resource SetContentView (Resource.Layout.Main); // Get our button from the layout resource, // and attach an event to it Button button = FindViewById<Button> (Resource.Id.myButton); _task.Name = "srihari"; _task.Notes = "this is sample"; button.Click += delegate { TaskJira.Core.JiraTaskManager.SaveTask(_task); this._task = TaskJira.Core.JiraTaskManager.GetTask(1); string s = this._task.Name; string a = this._task.Notes; }; }
public static int SaveTask(JiraTask item) { return _me._db.SaveTask (item); }