package de.jottyfan.camporganizer.module.admin;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import de.jottyfan.camporganizer.module.mail.MailBean;
import de.jottyfan.camporganizer.module.mail.MailRepository;

/**
 *
 * @author jotty
 *
 */
@Service
public class AdminService {

	@Autowired
	private MailRepository mailRepository;

	public void sendMail(@Valid MailBean bean) {
		mailRepository.sendMail(bean);
	}

}
