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