public bool UpdateTask(TaskModel taskEntity) { try { using (var repository = new DAL.TaskRepository()) { return(repository.Update(taskEntity)); } } catch (Exception ex) { throw ex; } }
public bool DeleteTaskById(int taskId) { try { using (var repository = new DAL.TaskRepository()) { return(repository.DeleteById(taskId)); } } catch (Exception ex) { throw ex; } }
public bool UpdateTask(int taskId) { try { using (var repository = new DAL.TaskRepository()) { return(repository.Update(taskId)); } } catch (Exception ex) { throw ex; } }
public TaskManager(SQLiteConnection conn) { repository = new DAL.TaskRepository(conn, ""); }
public TaskManager (SQLiteConnection conn) { repository = new DAL.TaskRepository(conn, ""); }
public TaskService() { _taskRepository = new TaskRepository(); }