コード例 #1
0
 public ServiceListModel(dbModel.Service model)
 {
     Id          = model.Id;
     Name        = model.Name;
     Description = model.Description;
     Price       = model.Price;
     IsActive    = model.IsActive;
 }
コード例 #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);
 }
コード例 #3
0
        public dbModel.Service ToDbModel()
        {
            dbModel.Service model = new dbModel.Service()
            {
                Id          = Id,
                Name        = Name,
                Description = Description,
                Price       = Price,
                IsActive    = IsActive
            };

            return(model);
        }