public async Task <RSV_Global <List <SubArea> > > GetSubAreaByIDArea(int IDArea) { RSV_Global <List <SubArea> > infoResult = new RSV_Global <List <SubArea> >(); _Service = new SubAreaService(_appsettings); try { infoResult = await _Service.GetSubAreaByIDArea(IDArea); } catch (Exception ex) { infoResult.error = new Error(ex, $"Se presento un error en el método {((MethodInfo)MethodBase.GetCurrentMethod()).Name.ToString()}. {ex.Message}"); } return(infoResult); }
//private readonly IAzureService azureService; public LeadController(ILeadService leadService, ISubAreaService subAreaService)//, IAzureService azureService) { this.leadService = leadService; this.subAreaService = subAreaService; //this.azureService = azureService; }
public SubAreaServiceMoq() { Mock <ISubAreaRepository> _subareaRepository = new SubAreaRepositoryMoq()._subareaRepository; _subareaService = new SubAreaService(_subareaRepository.Object); }
public SubAreasController(ISubAreaService service) { _service = service; }