public RegisterNutraceuticalCommand(string name, string pharmacology, string actionMechanism, string indications, string againstIndications, string adverseReactions, string drugInteractions, string descriptionDosages, string recomendedDosages, string nutraceuticalReferences, NutraceuticalType nutraceuticalType, int minDosage, int maxDosage, string unity, bool medicalonly, string commonName) { Name = name; CommonName = commonName; Pharmacology = pharmacology; ActionMechanism = actionMechanism; Indications = indications; AgainstIndications = againstIndications; AdverseReactions = adverseReactions; DrugInteractions = drugInteractions; DescriptionDosages = descriptionDosages; RecomendedDosages = recomendedDosages; NutraceuticalReferences = nutraceuticalReferences; NutraceuticalType = nutraceuticalType; MinDosage = minDosage; MaxDosage = maxDosage; Unity = unity; MedicalOnly = medicalonly; }
public ICollection <Nutraceutical> GetNutraceuticalByNutraceuticalType(NutraceuticalType nutraceuticalType) { return(_repository.GetByNutraceuticalType(nutraceuticalType)); }
public ICollection <Nutraceutical> GetByNutraceuticalType(NutraceuticalType nutraceuticalType) { return(_context .Nutraceuticals .Where(NutraceuticalSpecs.GetByNutraceuticalType(nutraceuticalType)).ToList()); }
public static Expression <Func <Nutraceutical, bool> > GetByNutraceuticalType(NutraceuticalType nutraceuticalType) { return(x => x.NutraceuticalType == nutraceuticalType); }
public Nutraceutical(Guid id, string name, string pharmacology, string actionMechanism, string indications, string againstIndications, string adverseReactions, string drugInteractions, string descriptionDosages, string recomendedDosages, string nutraceuticalReferences, NutraceuticalType nutraceuticalType, int minDosage, int maxDosage, string unity, bool medicalonly, string commonName) { this.Id = id; this.Name = name; this.CommonName = (string.IsNullOrEmpty(commonName) ? name : commonName); this.Pharmacology = pharmacology; this.ActionMechanism = actionMechanism; this.Indications = indications; this.AgainstIndications = againstIndications; this.AdverseReactions = adverseReactions; this.DrugInteractions = drugInteractions; this.DescriptionDosages = descriptionDosages; this.RecomendedDosages = recomendedDosages; this.NutraceuticalReferences = nutraceuticalReferences; this.NutraceuticalType = nutraceuticalType; this.MinDosage = minDosage; this.MaxDosage = maxDosage; this.Unity = unity; this.MedicalOnly = medicalonly; this.Active = true; this.Verified = true; this.LastUpdate = DateTime.Now; }