public ServiceListModel(dbModel.Service model) { Id = model.Id; Name = model.Name; Description = model.Description; Price = model.Price; IsActive = model.IsActive; }
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); }
public dbModel.Service ToDbModel() { dbModel.Service model = new dbModel.Service() { Id = Id, Name = Name, Description = Description, Price = Price, IsActive = IsActive }; return(model); }