Exemplo n.º 1
0
 public ServiceListModel(dbModel.Service model)
 {
     Id          = model.Id;
     Name        = model.Name;
     Description = model.Description;
     Price       = model.Price;
     IsActive    = model.IsActive;
 }
Exemplo 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);
 }
Exemplo 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);
        }