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;
     }
 }
예제 #4
0
 public TaskManager(SQLiteConnection conn)
 {
     repository = new DAL.TaskRepository(conn, "");
 }
예제 #5
0
		public TaskManager (SQLiteConnection conn) 
        {
            repository = new DAL.TaskRepository(conn, "");
        }
예제 #6
0
 public TaskService()
 {
     _taskRepository = new TaskRepository();
 }