package alexp.blog.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import alexp.blog.repository.*;
import alexp.blog.model.Schedule;

@Service("ScheduleService")
public  class ScheduleServiceImpl implements ScheduleService{

	@Autowired
    private ScheduleRepository schedulerepository;
	
	@Override
	public Schedule getSchedule(String username) {
		// TODO Auto-generated method stub
		System.out.println("I am in service");
		return schedulerepository.findByUsernameIgnoreCase(username);
	}

}
