Esempio n. 1
0
 public ServiceListModel(dbModel.Service model)
 {
     Id          = model.Id;
     Name        = model.Name;
     Description = model.Description;
     Price       = model.Price;
     IsActive    = model.IsActive;
 }
Esempio n. 2
0
 public ServiceModel(dbModel.Service model)
 {
     Id          = model.Id;
     Name        = model.Name;
     Description = model.Description;
     Price       = model.Price;
     IsActive    = model.IsActive;
     Business    = new BusinessModel(model.Business);
 }
Esempio n. 3
0
        public dbModel.Service ToDbModel()
        {
            dbModel.Service model = new dbModel.Service()
            {
                Id          = Id,
                Name        = Name,
                Description = Description,
                Price       = Price,
                IsActive    = IsActive
            };

            return(model);
        }