Beispiel #1
0
        public static HealthPackage Create(int tenantId, string packageName, string packageDescription, string packageCode,
                                           string imgUrl, Gender gender, string ageGroup, decimal price)
        {
            var @healthPackage = new HealthPackage
            {
                Id             = Guid.NewGuid(),
                TenantId       = tenantId,
                LabPackageName = packageName,
                LabPackageCode = packageCode,
                ImageUrl       = imgUrl,
                Gender         = gender,
                AgeGroup       = ageGroup,
                Price          = price
            };

            return(healthPackage);
        }
Beispiel #2
0
 public async Task CreatePackageAsync(HealthPackage healthPackage)
 {
     await _packageRepository.InsertAsync(healthPackage);
 }