public bool Create(TaskModel task) { try { if (repo.Create(task)) { TasksSingleton.Instance.Tasks.Add(task); } return(true); } catch (Exception ex) { throw ex; } }