Ejemplo n.º 1
0
        public TaskConfigurationDTO updateAllowDocumentsAndDisplayForClient(TaskConfigurationDTO model)
        {
            var taskEntity = getById(model.id);

            if (!isNull(taskEntity))
            {
                taskEntity.permitirDocs = model.allowDocuments;
                taskEntity.estado       = model.state; // visualizacion al cliente
                return((TaskConfigurationDTO)edit(taskEntity));
            }
            return(model); // no se realizo ninguna modificacion
        }
Ejemplo n.º 2
0
 public ActionResultApi <TaskConfigurationDTO> updateAllowDocumentsAndDisplayForClient(TaskConfigurationDTO model)
 {
     return(new ActionResultApi <TaskConfigurationDTO>(HttpStatusCode.OK, taskConfigurationDAL.updateAllowDocumentsAndDisplayForClient(model), Request));
 }
Ejemplo n.º 3
0
 public ActionResultApi <TaskConfigurationDTO> update(TaskConfigurationDTO model)
 {
     return(new ActionResultApi <TaskConfigurationDTO>(HttpStatusCode.OK, taskConfigurationDAL.update(model), Request));
 }
 public TaskConfigurationDTO updateAllowDocumentsAndDisplayForClient(TaskConfigurationDTO model)
 {
     return(taskConfigurationRepository.updateAllowDocumentsAndDisplayForClient(model));
 }
 public TaskConfigurationDTO update(TaskConfigurationDTO model)
 {
     return((TaskConfigurationDTO)taskConfigurationRepository.edit(model));
 }
 public TaskConfigurationDTO create(TaskConfigurationDTO model)
 {
     return((TaskConfigurationDTO)taskConfigurationRepository.create(model));
 }