public OperationResult Edit(EditServices command) { var operation = new OperationResult(); var service = _servicesRepository.Get(command.Id); if (service == null) { return(operation.Failed(ApplicationMessages.RecordNotFound)); } service.Edit(command.ServiceName, command.ServiceLogo, command.ServiceDescription); _servicesRepository.SaveChanges(); return(operation.Succedded()); }
public IEnumerable <User> Get() { return(_invRepository.Get()); }
public async Task <Service> GetService(int id) { var entidad = await _servicesRepository.Get(id); return(ServiceMapper.Map(entidad)); }
public List <Services> GetSearchCategoryByServiceID(int serviceTypeId) { return(_servicesRepository.Get(x => x.ServiceType == serviceTypeId)); }