public void AddDeploymentFile(ref OperationResult pobjOperationResult, deploymentfileDto pobjDtoEntity, List <string> ClientSession) { //mon.IsActive = true; try { SigesoftEntitiesModel dbContext = new SigesoftEntitiesModel(); deploymentfile objEntity = deploymentfileAssembler.ToEntity(pobjDtoEntity); dbContext.AddTodeploymentfile(objEntity); dbContext.SaveChanges(); pobjOperationResult.Success = 1; // Llenar entidad Log LogBL.SaveLog(ClientSession[0], ClientSession[1], ClientSession[2], LogEventType.CREACION, "DEPLOYMENT FILE", "DeploymentFileId=" + objEntity.i_DeploymentFileId.ToString(), Success.Ok, null); return; } catch (Exception ex) { pobjOperationResult.Success = 0; pobjOperationResult.ExceptionMessage = ex.Message; // Llenar entidad Log LogBL.SaveLog(ClientSession[0], ClientSession[1], ClientSession[2], LogEventType.CREACION, "DEPLOYMENT FILE", "DeploymentFileId=" + pobjDtoEntity.i_DeploymentFileId.ToString(), Success.Failed, ex.Message); return; } }