Converting process moved from controller to DAL