/// <summary> /// This function returns a list of the Behavioral Health Characteristics based on a specific BHealth Characteristic Type. /// </summary> /// <param name="bHAttributeType"></param> /// <returns></returns> public List <BehavioralHealthAttribute> GetBehavioralHealthAttributeByID(BHAttributeType bHAttributeType) { List <BehavioralHealthAttribute> bhAttributeList = new List <BehavioralHealthAttribute>(); using (DataLayer dataLayer = new DataLayer()) { bhAttributeList = dataLayer.GetBehavioralHealthAttributeByID(bHAttributeType); } return(bhAttributeList); }
public async Task <IActionResult> GetBehavioralHealthAttributeByID(BHAttributeType id) { BehavioralHealthAttribute[] list = await _providerHubService.GetBehavioralHealthAttributeByIDAsync(id); return(Json(list)); }