public TaskObjectCollection GetAll() { TaskObjectCollection tasks; try { tasks = new TaskDataService().GetAll(); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return tasks; }
public TaskObjectCollection GetFilter(string dateFrom, string dateTo, string description) { TaskObjectCollection tasks; try { tasks = new TaskDataService().GetFilter(dateFrom, dateTo, description); } catch (System.Exception exception1) { System.Exception innerException = exception1; throw new System.Exception(MethodBase.GetCurrentMethod().Name, innerException); } return tasks; }