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();
 }