Subversion Repositories SmartDukaan

Rev

Rev 3088 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

/**
 * 
 */
package in.shop2020.crm.handler;

import in.shop2020.crm.domain.Agent;
import in.shop2020.crm.persistence.AgentMapper;

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

/**
 * Handler for read and update operations on agents in database.
 *
 * @author mandeep
 */
@Service
public class AgentHandler {
    @Autowired
    private AgentMapper agentMapper;

    public Agent getAgent(long agentId)
    {
        return agentMapper.getAgent(agentId);
    }

    public Agent getAgentByEmail(String emailId)
    {
        return agentMapper.getAgentByEmailId(emailId);
    }
}