Exemplo n.º 1
0
        public ServiceVM AddService(int ServiceID = 0)
        {
            ServiceVM Data = null;

            if (ServiceID > 0)
            {
                Data = _serviceService.EditService(ServiceID);
            }
            else
            {
                Data = new ServiceVM();
            }

            Data.CategoryList         = _serviceService.GetCategories();
            Data.RateTypeList         = _serviceService.CollectionType(3); // TypeID = 3 for Rate Type list
            Data.ServiceAreaRangeList = _serviceService.CollectionType(1); // TypeID = 1 for Service Area Range list
            Data.ExperienceLevelList  = _serviceService.CollectionType(4); // TypeID = 4 for Experience Level list
            return(Data);
        }