public async Task <ActionResult> ListAllBrandsDoseTemplates(int id) { if (id < 1) { return(Json("error")); } IList <BrandDoseTemplateViewVM> result = await _drugService.ListAllBrandsDoseTemplates(id); return(Json(result)); }