private AllowResourcesDto GetAppResources(string userName, string password, long idApplication) { AllowResourcesDto dtoAllowResources = new AllowResourcesDto(); dtoAllowResources.AuthenticationCod = Convert.ToInt16(AuthenticationCode.Success); dtoAllowResources.MessageAuthentication = "Success"; return(dtoAllowResources); }
public AllowResourcesDto GetAllowResources(string userName, string password, long idCompany, long idApplication, string token) { userName = Crypto.DecryptStringAes(userName); password = Crypto.DecryptStringAes(password); BasicAuthenticationDto dtoBasicAuthentication = this.GetBasicAuthentication(userName, password, idCompany, idApplication, token); AllowResourcesDto dtoAllowResources = new AllowResourcesDto(); dtoAllowResources.AuthenticationCod = dtoBasicAuthentication.AuthenticationCod; dtoAllowResources.MessageAuthentication = dtoBasicAuthentication.MessageAuthentication; if (dtoAllowResources.AuthenticationCod == Convert.ToInt16(AuthenticationCode.Success)) { dtoAllowResources = this.GetAppResources(userName, password, idApplication); } return(dtoAllowResources); }