public async Task <IViewComponentResult> InvokeAsync(bool isSkinSensitive, string skinTypeId) { var model = new AllProcedurePrimaryViewModel() { Procedures = await this.proceduresService .GetPerfectProceduresForSkinTypeAsync <ProcedurePrimaryViewModel>(isSkinSensitive, skinTypeId), }; return(this.View(model)); }
public async Task <IViewComponentResult> InvokeAsync(string productId) { var model = new AllProcedurePrimaryViewModel() { Procedures = await this.proceduresService .GetProceduresUseProductAsync <ProcedurePrimaryViewModel>(productId), }; return(this.View(model)); }