public void DeleteTask(Task oTask) { try { oITareas = new Tareas(); oITareas.DeleteTask(oTask); } catch (Exception ex) { throw; } }
public List <Task> ListTasks(Entities.Task oTask) { try { oITareas = new Tareas(); return(oITareas.ListTaskbyState(oTask)); } catch (Exception ex) { throw; } }
public Task GetTask(Task oTask) { try { oITareas = new Tareas(); return(oITareas.GetTask(oTask)); } catch (Exception ex) { throw; } }
public Entities.Task EditTask(Task oTask) { try { oITareas = new Tareas(); return(oITareas.EditTask(oTask)); } catch (Exception ex) { throw; } }
public Entities.Task CreateTask(Task oTask, User oUser) { try { oITareas = new Tareas(); return(oITareas.CreateTask(oTask, oUser)); } catch (Exception ex) { throw; } }
public TareasController(ITareas context, IMapper mapper) { _context = context; _mapper = mapper; }