public void Update(Student student) { Dal.Entities.Student dalStudent = AutoMapper.Mapper.Map <Dal.Entities.Student>(student); _studentRepository.UpdateStudent(dalStudent); }
public int Insert(Student student) { Dal.Entities.Student dalStudent = AutoMapper.Mapper.Map <Dal.Entities.Student>(student); return(_studentRepository.InsertStudent(dalStudent)); }